[GRASS-SVN] r37066 - grass/trunk/lib/python

svn_grass at osgeo.org svn_grass at osgeo.org
Sat May 9 10:14:28 EDT 2009


Author: glynn
Date: 2009-05-09 10:14:28 -0400 (Sat, 09 May 2009)
New Revision: 37066

Modified:
   grass/trunk/lib/python/grass.py
Log:
os.execvp() requires the .exe suffix on Windows


Modified: grass/trunk/lib/python/grass.py
===================================================================
--- grass/trunk/lib/python/grass.py	2009-05-09 13:39:26 UTC (rev 37065)
+++ grass/trunk/lib/python/grass.py	2009-05-09 14:14:28 UTC (rev 37066)
@@ -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