[GRASS-SVN] r37075 - grass/branches/releasebranch_6_4/lib/python

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


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

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


Modified: grass/branches/releasebranch_6_4/lib/python/grass.py
===================================================================
--- grass/branches/releasebranch_6_4/lib/python/grass.py	2009-05-09 16:11:11 UTC (rev 37074)
+++ grass/branches/releasebranch_6_4/lib/python/grass.py	2009-05-09 16:12:03 UTC (rev 37075)
@@ -205,7 +205,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