(command_list, cwd=None, check=True)
| 7 | from pathlib import Path |
| 8 | |
| 9 | def run_command(command_list, cwd=None, check=True): |
| 10 | print(f"Executing: {' '.join(map(str, command_list))}") |
| 11 | try: |
| 12 | process = subprocess.run(command_list, cwd=cwd, check=check, capture_output=False, text=True) |
| 13 | return process |
| 14 | except subprocess.CalledProcessError as e: |
| 15 | print(f"Error executing command: {' '.join(map(str, e.cmd))}") |
| 16 | print(f"Return code: {e.returncode}") |
| 17 | raise |
| 18 | |
| 19 | def main(): |
| 20 | if len(sys.argv) < 2: |