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

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jan 2 08:22:41 PST 2016


Author: martinl
Date: 2016-01-02 08:22:41 -0800 (Sat, 02 Jan 2016)
New Revision: 67472

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

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



More information about the grass-commit mailing list