MCPcopy Create free account
hub / github.com/CppCon/CppCon2020 / shell_call

Function shell_call

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

Source from the content-addressed store, hash-verified

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

Callers 2

add_presentationFunction · 0.85
add.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected