MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / run_python_step

Function run_python_step

scripts/sanitize-commit.py:131–137  ·  view source on GitHub ↗
(label: str, script: Path, *args: str)

Source from the content-addressed store, hash-verified

129
130
131def run_python_step(label: str, script: Path, *args: str) -> None:
132 if not script.is_file():
133 return
134 print(f"{label}...")
135 result = run([sys.executable, str(script), *args])
136 if result.returncode != 0:
137 print(f"{script.name} failed")
138
139
140def run_python_step_quiet(label: str, script: Path, *args: str) -> None:

Callers 1

mainFunction · 0.85

Calls 1

runFunction · 0.85

Tested by

no test coverage detected