MCPcopy Create free account
hub / github.com/URLab-Sim/UnrealRoboticsLab / _run

Function _run

Scripts/codegen/regen_all.py:42–51  ·  view source on GitHub ↗
(label: str, cmd: list[str])

Source from the content-addressed store, hash-verified

40
41
42def _run(label: str, cmd: list[str]) -> int:
43 print(f"\n>>> {label}", flush=True)
44 t0 = time.monotonic()
45 proc = subprocess.run(cmd, cwd=PLUGIN_ROOT)
46 dt = time.monotonic() - t0
47 if proc.returncode != 0:
48 print(f"!!! {label} FAILED (exit {proc.returncode}, {dt:.1f}s)", flush=True)
49 else:
50 print(f"... {label} ok ({dt:.1f}s)", flush=True)
51 return proc.returncode
52
53
54def main(argv: list[str] | None = None) -> int:

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected