MCPcopy
hub / github.com/CppCon/CppCon2017 / shell_call

Function shell_call

_tools/add.py:12–19  ·  view source on GitHub ↗
(cmd)

Source from the content-addressed store, hash-verified

10CPPCON_YEAR = 2017
11
12def shell_call(cmd):
13 process = subprocess.Popen(cmd, shell=True)
14 process.wait()
15 if process.returncode:
16 print("'{}' failed.".format(cmd))
17 print("Exit code:", process.returncode)
18
19 exit(process.returncode)
20
21
22def add_index(readme, category):

Callers 2

add_presentationFunction · 0.85
add.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected