[GRASS-SVN] r37074 - grass/branches/develbranch_6/lib/python

svn_grass at osgeo.org svn_grass at osgeo.org
Sat May 9 12:11:11 EDT 2009


Author: martinl
Date: 2009-05-09 12:11:11 -0400 (Sat, 09 May 2009)
New Revision: 37074

Modified:
   grass/branches/develbranch_6/lib/python/grass.py
Log:
glynn: os.execvp() requires the .exe suffix on Windows
       (merge from trunk, r37066)


Modified: grass/branches/develbranch_6/lib/python/grass.py
===================================================================
--- grass/branches/develbranch_6/lib/python/grass.py	2009-05-09 16:10:35 UTC (rev 37073)
+++ grass/branches/develbranch_6/lib/python/grass.py	2009-05-09 16:11:11 UTC (rev 37074)
@@ -220,7 +220,10 @@
 	else:
 	    argv[0] = os.path.join(sys.path[0], name)
 
-    os.execvp("g.parser", [name] + argv)
+    if sys.platform == "win32":
+       os.execvp("g.parser.exe", [name] + argv)
+    else:
+       os.execvp("g.parser", [name] + argv)
     raise OSError("error executing g.parser")
 
 # interface to g.tempfile



More information about the grass-commit mailing list