[GRASS-SVN] r53511 - grass/branches/releasebranch_6_4/gui/wxpython/core
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Oct 20 03:30:59 PDT 2012
Author: martinl
Date: 2012-10-20 03:30:59 -0700 (Sat, 20 Oct 2012)
New Revision: 53511
Modified:
grass/branches/releasebranch_6_4/gui/wxpython/core/gcmd.py
Log:
attemt to fix #1692
(merge r53428 from devbr64)
Modified: grass/branches/releasebranch_6_4/gui/wxpython/core/gcmd.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/core/gcmd.py 2012-10-19 22:07:01 UTC (rev 53510)
+++ grass/branches/releasebranch_6_4/gui/wxpython/core/gcmd.py 2012-10-20 10:30:59 UTC (rev 53511)
@@ -520,14 +520,17 @@
return
Debug.msg(1, "gcmd.CommandThread(): %s" % ' '.join(self.cmd))
-
+
self.startTime = time.time()
-
+
# TODO: replace ugly hack bellow
args = self.cmd
if sys.platform == 'win32' and os.path.splitext(self.cmd[0])[1] == '.py':
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 \
+ os.path.exists(os.path.join(os.getenv('GRASS_ADDON_PATH'), self.cmd[0] + '.bat')):
+ args[0] = self.cmd[0] + '.bat'
try:
self.module = Popen(args,
More information about the grass-commit
mailing list