[GRASS-SVN] r53428 - grass/branches/develbranch_6/gui/wxpython/core
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Oct 16 07:50:56 PDT 2012
Author: martinl
Date: 2012-10-16 07:50:56 -0700 (Tue, 16 Oct 2012)
New Revision: 53428
Modified:
grass/branches/develbranch_6/gui/wxpython/core/gcmd.py
Log:
attemt to fix #1692
Modified: grass/branches/develbranch_6/gui/wxpython/core/gcmd.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/core/gcmd.py 2012-10-16 13:38:24 UTC (rev 53427)
+++ grass/branches/develbranch_6/gui/wxpython/core/gcmd.py 2012-10-16 14:50:56 UTC (rev 53428)
@@ -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