[GRASS-SVN] r43390 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Sep 1 18:14:41 EDT 2010


Author: martinl
Date: 2010-09-01 22:14:41 +0000 (Wed, 01 Sep 2010)
New Revision: 43390

Modified:
   grass/trunk/gui/wxpython/gui_modules/globalvar.py
Log:
attempt to fix #1143
(merge r43388 from relbr64)


Modified: grass/trunk/gui/wxpython/gui_modules/globalvar.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/globalvar.py	2010-09-01 22:13:11 UTC (rev 43389)
+++ grass/trunk/gui/wxpython/gui_modules/globalvar.py	2010-09-01 22:14:41 UTC (rev 43390)
@@ -158,8 +158,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