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

Function executeCommandSilent

bootstrap.py:10–13  ·  view source on GitHub ↗
(command)

Source from the content-addressed store, hash-verified

8Python = "python" if platform.system() == "Windows" else "python3"
9
10def executeCommandSilent(command):
11 out = open(os.devnull, 'w')
12 err = subprocess.STDOUT
13 return subprocess.call(command, shell = True, stdout=out, stderr=err);
14
15def runPythonScript(Script, Params):
16 if os.system( Python + " " + Script + " " + Params ) != 0:

Callers 1

bootstrap.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected