[Bf-blender-cvs] [19b1b45d715] master: make_quickie: replace os.system w/ subprocess.call
Campbell Barton
noreply at git.blender.org
Fri Jan 26 02:56:50 CET 2018
Commit: 19b1b45d715e9c9bb20df77b02dd2943f28cd157
Author: Campbell Barton
Date: Fri Jan 26 12:53:42 2018 +1100
Branches: master
https://developer.blender.org/rB19b1b45d715e9c9bb20df77b02dd2943f28cd157
make_quickie: replace os.system w/ subprocess.call
===================================================================
M build_files/cmake/example_scripts/make_quicky.py
===================================================================
diff --git a/build_files/cmake/example_scripts/make_quicky.py b/build_files/cmake/example_scripts/make_quicky.py
index 49c284e354d..a1334d6fc83 100755
--- a/build_files/cmake/example_scripts/make_quicky.py
+++ b/build_files/cmake/example_scripts/make_quicky.py
@@ -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()
More information about the Bf-blender-cvs
mailing list