File size: 341 Bytes
41d6e2b |
1 2 3 4 5 6 7 8 9 10 11 12 |
# run_freecad.py
import subprocess
from pathlib import Path
freecad_exe = r"C:\Program Files\FreeCAD 1.0\bin\freecad.exe"
script_path = Path("generated/result_script.py")
if not script_path.exists():
raise FileNotFoundError("Generated script not found. Run main.py first.")
subprocess.run([freecad_exe, str(script_path)], check=True)
|