[GRASS-SVN] r67475 - grass/branches/releasebranch_7_0/gui/wxpython/gmodeler
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Jan 3 15:05:57 PST 2016
Author: martinl
Date: 2016-01-03 15:05:57 -0800 (Sun, 03 Jan 2016)
New Revision: 67475
Modified:
grass/branches/releasebranch_7_0/gui/wxpython/gmodeler/frame.py
Log:
wxGUI/modeler: fix python save as (wxPython 3 bugfix)
(merge r67471:67472 from trunk)
Modified: grass/branches/releasebranch_7_0/gui/wxpython/gmodeler/frame.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/gmodeler/frame.py 2016-01-03 21:04:35 UTC (rev 67474)
+++ grass/branches/releasebranch_7_0/gui/wxpython/gmodeler/frame.py 2016-01-03 23:05:57 UTC (rev 67475)
@@ -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)),
defaultDir = os.getcwd(),
wildcard = _("Python script (*.py)|*.py"),
style = wx.FD_SAVE)
More information about the grass-commit
mailing list