MCPcopy Create free account
hub / github.com/numpy/numpy / run

Function run

tools/ci/push_docs_to_repo.py:42–48  ·  view source on GitHub ↗
(cmd, stdout=True)

Source from the content-addressed store, hash-verified

40 sys.exit(1)
41
42def run(cmd, stdout=True):
43 pipe = None if stdout else subprocess.DEVNULL
44 try:
45 subprocess.check_call(cmd, stdout=pipe, stderr=pipe)
46 except subprocess.CalledProcessError:
47 print(f"\n! Error executing: `{' '.join(cmd)};` aborting")
48 sys.exit(1)
49
50
51workdir = tempfile.mkdtemp()

Callers 1

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected