Browse Source

On Windows, invoke preprocessor via sh.exe

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@43120 15284696-431f-4ddb-bdfa-cd5b030d7da7
Glynn Clements 15 năm trước cách đây
mục cha
commit
65eef4767a
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      lib/python/ctypes/ctypesgencore/parser/preprocessor.py

+ 3 - 0
lib/python/ctypes/ctypesgencore/parser/preprocessor.py

@@ -141,6 +141,9 @@ class PreprocessorParser(object):
 
         self.cparser.handle_status(cmd)
         
+        if sys.platform == 'win32':
+            cmd = ['sh.exe', '-c', cmd]
+
         pp = subprocess.Popen(cmd,
                               shell = True,
                               stdout = subprocess.PIPE,