[GRASS-SVN] r53515 - grass/branches/develbranch_6/gui/wxpython/core

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Oct 20 06:35:06 PDT 2012


Author: martinl
Date: 2012-10-20 06:35:05 -0700 (Sat, 20 Oct 2012)
New Revision: 53515

Modified:
   grass/branches/develbranch_6/gui/wxpython/core/gcmd.py
Log:
wxGUI: fix for Python GUI scripts


Modified: grass/branches/develbranch_6/gui/wxpython/core/gcmd.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/core/gcmd.py	2012-10-20 11:38:36 UTC (rev 53514)
+++ grass/branches/develbranch_6/gui/wxpython/core/gcmd.py	2012-10-20 13:35:05 UTC (rev 53515)
@@ -526,7 +526,8 @@
         
         # TODO: replace ugly hack bellow
         args = self.cmd
-        if sys.platform == 'win32' and os.path.splitext(self.cmd[0])[1] == globalvar.SCT_EXT:
+        if sys.platform == 'win32' and os.path.splitext(self.cmd[0])[1] == '.py':
+            # Python GUI script should be replaced by Shell scripts
             os.chdir(os.path.join(os.getenv('GISBASE'), 'etc', 'gui', 'scripts'))
             args = [sys.executable, self.cmd[0]] + self.cmd[1:]
         if sys.platform == 'win32' and os.getenv('GRASS_ADDON_PATH') and \



More information about the grass-commit mailing list