[GRASS-SVN] r65110 - grass/trunk/gui/wxpython/lmgr

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Apr 20 08:15:29 PDT 2015


Author: annakrat
Date: 2015-04-20 08:15:29 -0700 (Mon, 20 Apr 2015)
New Revision: 65110

Modified:
   grass/trunk/gui/wxpython/lmgr/frame.py
Log:
wxGUI: fix change current writing directory on Mac - style=wx.DD_CHANGE_DIR is not working on Mac

Modified: grass/trunk/gui/wxpython/lmgr/frame.py
===================================================================
--- grass/trunk/gui/wxpython/lmgr/frame.py	2015-04-20 14:47:47 UTC (rev 65109)
+++ grass/trunk/gui/wxpython/lmgr/frame.py	2015-04-20 15:15:29 UTC (rev 65110)
@@ -1041,11 +1041,12 @@
             # 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