CADomatic / src /run_freecad.py
YSMlearnsCode
clean hf integration
41d6e2b
raw
history blame contribute delete
341 Bytes
# 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)