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

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Dec 14 21:19:25 EST 2009


Author: cmbarton
Date: 2009-12-14 21:19:24 -0500 (Mon, 14 Dec 2009)
New Revision: 40006

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/gcmd.py
Log:
Allows nviz module to run nviz on Windows (and other platforms)

Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/gcmd.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/gcmd.py	2009-12-14 20:52:41 UTC (rev 40005)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/gcmd.py	2009-12-15 02:19:24 UTC (rev 40006)
@@ -484,15 +484,8 @@
                   stdout=sys.stdout, stderr=sys.stderr):
 
         Thread.__init__(self)
-	
+
         self.cmd    = cmd
-	
-	# hack around platform-specific extension for binaries
-	if self.cmd[0] in globalvar.grassCmd['script']:
-	    self.cmd[0] = self.cmd[0] + globalvar.EXT_SCT
-	else:
-	    self.cmd[0] = self.cmd[0] + globalvar.EXT_BIN
-        
         self.stdin  = stdin
         self.stdout = stdout
         self.stderr = stderr
@@ -525,7 +518,8 @@
             self.module = Popen(self.cmd,
                                 stdin=subprocess.PIPE,
                                 stdout=subprocess.PIPE,
-                                stderr=subprocess.PIPE)
+                                stderr=subprocess.PIPE,
+                                shell=sys.platform=="win32")
         except OSError, e:
             self.error = str(e)
             return 1



More information about the grass-commit mailing list