Ticket #14525 (closed defect: fixed)
wxDirDialog::GetPath() doesn't return the user-selected path
|Reported by:||MichaelClerx||Owned by:|
The following snippet always prints the default path, never the user-selected one:
dlg = wx.DirDialog(self, 'Export', '/home/michael') ok = dlg.ShowModal() == wx.ID_OK if ok: print dlg.GetPath()
I'm using a 64 bit version of Fedora 17 (with Gnome 3.4.2) and using the packages from Fedora's repositories.
It worked when I used it some months ago, but now I have two machines with similar installs where the method fails. The FileDialog's GetDirectory() method has also started displaying this behaviour but that can be worked around by using os.path.dirname(file_dialog.GetPath())