I had the same problem with my own code and with the code above. However, I found that there is a way around. When you use DirDialog, do not go to the directory you want to open. Instead, just highlight the directory you want to open and click "Open."
In Ubuntu 12.10 with Python 2.7.3 and wxPython 2.8.12.1 (and from 2.9), completely moving to the directory and clicking the "Open" button, you simply get your home directory. Moving one directory up, highlighting the desired directory and pressing the open button gives the correct result.
I have another machine with Ubuntu 11.10 with Python 2.7.3, and I don't remember this problem.
It is clear that this work is not the right solution, but all that I could still find. Hope this helps.
source share