MCPcopy Index your code
hub / github.com/RustPython/RustPython / run_command

Function run_command

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

Source from the content-addressed store, hash-verified

2533 from .os_helper import temp_cwd
2534
2535 def run_command(cmd):
2536 if verbose:
2537 import shlex
2538 print()
2539 print('Run:', ' '.join(map(shlex.quote, cmd)))
2540 subprocess.run(cmd, check=True)
2541 else:
2542 subprocess.run(cmd,
2543 stdout=subprocess.PIPE,
2544 stderr=subprocess.STDOUT,
2545 check=True)
2546
2547 with temp_cwd() as temp_dir:
2548 # Create virtual environment to get setuptools

Callers 2

Calls 3

printFunction · 0.50
joinMethod · 0.45
runMethod · 0.45

Tested by 1