[GRASS-SVN] r40008 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Dec 14 21:32:09 EST 2009


Author: cmbarton
Date: 2009-12-14 21:32:08 -0500 (Mon, 14 Dec 2009)
New Revision: 40008

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

Modified: grass/trunk/gui/wxpython/gui_modules/gcmd.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/gcmd.py	2009-12-15 02:25:59 UTC (rev 40007)
+++ grass/trunk/gui/wxpython/gui_modules/gcmd.py	2009-12-15 02:32:08 UTC (rev 40008)
@@ -456,16 +456,10 @@
         @param stdout redirect standard output or None
         @param stderr redirect standard error output or None
         """
+
         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
@@ -499,7 +493,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