MCPcopy Create free account
hub / github.com/PacktPublishing/3D-Graphics-Rendering-Cookbook / runPythonScript

Function runPythonScript

bootstrap.py:15–18  ·  view source on GitHub ↗
(Script, Params)

Source from the content-addressed store, hash-verified

13 return subprocess.call(command, shell = True, stdout=out, stderr=err);
14
15def runPythonScript(Script, Params):
16 if os.system( Python + " " + Script + " " + Params ) != 0:
17 print( "Unable to run " + Script )
18 exit(255)
19
20if executeCommandSilent(Python + " --version") != 0:
21 print( "Make sure Python can be started from the command line (add path to `python.exe` to PATH on Windows)" )

Callers 1

bootstrap.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected