[GRASS-SVN] r67471 - grass/trunk/gui/wxpython/gmodeler

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jan 2 08:15:43 PST 2016


Author: martinl
Date: 2016-01-02 08:15:42 -0800 (Sat, 02 Jan 2016)
New Revision: 67471

Modified:
   grass/trunk/gui/wxpython/gmodeler/frame.py
Log:
wxGUI/modeler: fix python save as

Modified: grass/trunk/gui/wxpython/gmodeler/frame.py
===================================================================
--- grass/trunk/gui/wxpython/gmodeler/frame.py	2016-01-02 16:08:13 UTC (rev 67470)
+++ grass/trunk/gui/wxpython/gmodeler/frame.py	2016-01-02 16:15:42 UTC (rev 67471)
@@ -1748,7 +1748,7 @@
         filename = ''
         dlg = wx.FileDialog(parent = self,
                             message = _("Choose file to save"),
-                            defaultFile = self.parent.GetModelFile(ext=False) + '.py',
+                            defaultFile = os.path.basename(self.parent.GetModelFile(ext=False)) + '.py',
                             defaultDir = os.getcwd(),
                             wildcard = _("Python script (*.py)|*.py"),
                             style = wx.FD_SAVE)



More information about the grass-commit mailing list