[GRASS-SVN] r43389 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Sep 1 18:13:11 EDT 2010
Author: martinl
Date: 2010-09-01 22:13:11 +0000 (Wed, 01 Sep 2010)
New Revision: 43389
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/globalvar.py
Log:
attempt to fix #1143
(merge r43388 from relbr64)
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/globalvar.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/globalvar.py 2010-09-01 22:07:45 UTC (rev 43388)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/globalvar.py 2010-09-01 22:13:11 UTC (rev 43389)
@@ -159,8 +159,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