[GRASS-SVN] r43388 - grass/branches/releasebranch_6_4/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Sep 1 18:07:45 EDT 2010


Author: martinl
Date: 2010-09-01 22:07:45 +0000 (Wed, 01 Sep 2010)
New Revision: 43388

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/globalvar.py
Log:
attempt to fix #1143

Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/globalvar.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/globalvar.py	2010-09-01 18:36:31 UTC (rev 43387)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/globalvar.py	2010-09-01 22:07:45 UTC (rev 43388)
@@ -145,8 +145,8 @@
 
     if subprocess.mswindows:
         for idx in range(len(cmd)):
-            cmd[idx] = cmd[idx].replace(EXT_BIN, '')
-            cmd[idx] = cmd[idx].replace(EXT_SCT, '')
+            if cmd[idx][-4:] in (EXT_BIN, EXT_SCT):
+                cmd[idx] = cmd[idx][:-4]
     
     return cmd
 



More information about the grass-commit mailing list