MCPcopy Index your code
hub / github.com/python/cpython / run_command

Function run_command

Lib/test/support/__init__.py:2605–2615  ·  view source on GitHub ↗
(cmd)

Source from the content-addressed store, hash-verified

2603 from .os_helper import temp_cwd
2604
2605 def run_command(cmd):
2606 if verbose:
2607 import shlex
2608 print()
2609 print('Run:', ' '.join(map(shlex.quote, cmd)))
2610 subprocess.run(cmd, check=True)
2611 else:
2612 subprocess.run(cmd,
2613 stdout=subprocess.PIPE,
2614 stderr=subprocess.STDOUT,
2615 check=True)
2616
2617 with temp_cwd() as temp_dir:
2618 # Create virtual environment to get setuptools

Callers 2

Calls 2

joinMethod · 0.45
runMethod · 0.45

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…