[GRASS-SVN] r65129 - grass/branches/releasebranch_7_0/gui/wxpython/lmgr
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Apr 24 08:19:34 PDT 2015
Author: annakrat
Date: 2015-04-24 08:19:34 -0700 (Fri, 24 Apr 2015)
New Revision: 65129
Modified:
grass/branches/releasebranch_7_0/gui/wxpython/lmgr/frame.py
Log:
wxGUI: fix change current writing directory on Mac - style=wx.DD_CHANGE_DIR is not working on Mac (merge from trunk, r65110, r65128)
Modified: grass/branches/releasebranch_7_0/gui/wxpython/lmgr/frame.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/lmgr/frame.py 2015-04-24 15:17:43 UTC (rev 65128)
+++ grass/branches/releasebranch_7_0/gui/wxpython/lmgr/frame.py 2015-04-24 15:19:34 UTC (rev 65129)
@@ -1030,14 +1030,14 @@
self._giface.WriteError(str(error))
write_end()
else:
- # style wx.DD_CHANGE_DIR changes the directory
dlg = wx.DirDialog(parent=self,
message=_("Choose a working directory"),
- defaultPath=os.getcwd(), style=wx.DD_CHANGE_DIR)
+ defaultPath=os.getcwd())
if dlg.ShowModal() == wx.ID_OK:
self.cwdPath = dlg.GetPath() # is saved in the workspace
write_beginning(parameter=self.cwdPath)
+ os.chdir(self.cwdPath)
write_changed()
write_end()
More information about the grass-commit
mailing list