Commit 108d51b3b6f36074f22d61daf90a465824457efc

SSE4 2019-02-22T04:41:08

- prepend PATH Signed-off-by: SSE4 <tomskside@gmail.com>

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/build.py b/build.py
index 12a616c..02d488f 100644
--- a/build.py
+++ b/build.py
@@ -24,7 +24,7 @@ def run(command):
 
 def main():
     if "MINGW_HOME" in os.environ:
-        os.environ["PATH"] += os.pathsep + os.environ["MINGW_HOME"]
+        os.environ["PATH"] = os.environ["MINGW_HOME"] + os.pathsep + os.environ["PATH"]
     generator = os.environ["CMAKE_GENERATOR"]
     multi_config = generator.startswith("Visual")
     command = 'cmake . -G "%s"' % generator