[GRASS-SVN] r43120 - grass/trunk/lib/python/ctypes/ctypesgencore/parser

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Aug 15 13:29:57 EDT 2010


Author: glynn
Date: 2010-08-15 17:29:57 +0000 (Sun, 15 Aug 2010)
New Revision: 43120

Modified:
   grass/trunk/lib/python/ctypes/ctypesgencore/parser/preprocessor.py
Log:
On Windows, invoke preprocessor via sh.exe


Modified: grass/trunk/lib/python/ctypes/ctypesgencore/parser/preprocessor.py
===================================================================
--- grass/trunk/lib/python/ctypes/ctypesgencore/parser/preprocessor.py	2010-08-15 11:08:34 UTC (rev 43119)
+++ grass/trunk/lib/python/ctypes/ctypesgencore/parser/preprocessor.py	2010-08-15 17:29:57 UTC (rev 43120)
@@ -141,6 +141,9 @@
 
         self.cparser.handle_status(cmd)
         
+        if sys.platform == 'win32':
+            cmd = ['sh.exe', '-c', cmd]
+
         pp = subprocess.Popen(cmd,
                               shell = True,
                               stdout = subprocess.PIPE,



More information about the grass-commit mailing list