(label: str, script: Path, *args: str)
| 129 | |
| 130 | |
| 131 | def 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 | |
| 140 | def run_python_step_quiet(label: str, script: Path, *args: str) -> None: |