make_quickie: replace os.system w/ subprocess.call
authorCampbell Barton <ideasman42@gmail.com>
Fri, 26 Jan 2018 01:53:42 +0000 (12:53 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 26 Jan 2018 01:53:42 +0000 (12:53 +1100)
build_files/cmake/example_scripts/make_quicky.py

index 49c284e354db23c364b6827880627b00474532be..a1334d6fc83fde6a4a24cd6b22996d3c20339750 100755 (executable)
@@ -107,12 +107,12 @@ def main():
                 return
 
     # execute
-    cmd = "make %s %s blender/fast" % (" ".join(args), " ".join(targets_new))
+    cmd = ["make"] + args + targets_new + ["blender/fast"]
     print("cmake building with targets: %s" % " ".join(targets_new))
-    print("executing: %s" % cmd)
+    print("executing: %s" % " ".join(cmd))
 
-    import os
-    os.system(cmd)
+    import subprocess
+    subprocess.call(cmd)
 
 if __name__ == "__main__":
     main()