I am new in this group and a wx-beginner.
I had a look on the old posts about wx.DirDialog issues but I could not
find a solution for the following problem I have.
The small piece of code attached below should (in my intention) tell the
system to change directory to the "_selectedDir" folder.
In the following part of the code (not shown) some commands should be
executed in the folder "_selectedDir" which contains some input files.
The code does work on Linux (the system changes directory, inputs are found
and commands properly executed).
But the code does NOT work on MacOSX since I get an error message stating
that the input files cannot be found. I did some cross check printing out
the 'pwd' and I find that the directory did not change.
dialog = wx.DirDialog(self, "Please choose your project directory:",\
defaultPath=userPath,style=wx.DD_CHANGE_DIR , pos = (10,10))
if dialog.ShowModal() == wx.ID_OK:
_selectedDir = dialog.GetPath()
_userCancel = dialog.Destroy()
Maybe my code is not properly written?
Thanks in advance and sorry in case this topic was already known.