MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / run

Function run

tests/test_4767.py:49–59  ·  view source on GitHub ↗
(command, *, check=0, capture=1)

Source from the content-addressed store, hash-verified

47 os.makedirs(f'{testdir}/one/two', exist_ok=1)
48
49 def run(command, *, check=0, capture=1):
50 print(f'Running: {command}')
51 cp = subprocess.run(
52 command, shell=1,
53 text=1,
54 check=check,
55 stdout=subprocess.PIPE if capture else None,
56 stderr=subprocess.STDOUT if capture else None,
57 )
58 print(cp.stdout)
59 return cp
60
61 def get_paths():
62 paths = list()

Callers 1

test_4767Function · 0.70

Calls 1

runMethod · 0.45

Tested by

no test coverage detected