[GRASS-SVN] r40007 - grass/branches/develbranch_6/gui/wxpython/gui_modules

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


Author: cmbarton
Date: 2009-12-14 21:25:59 -0500 (Mon, 14 Dec 2009)
New Revision: 40007

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

Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/gcmd.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/gcmd.py	2009-12-15 02:19:24 UTC (rev 40006)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/gcmd.py	2009-12-15 02:25:59 UTC (rev 40007)
@@ -450,17 +450,9 @@
     on the background."""
     def __init__ (self, cmd, stdin=None,
                   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.cmd    = cmd
         self.stdin  = stdin
         self.stdout = stdout
         self.stderr = stderr
@@ -494,7 +486,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