check if openscad is installed on system
This commit is contained in:
1 parent
bcb20a9a5d
commit
ec1939a2e1
6 files changed
+22
-11
No files matched your search
Regular → Executable
+3
-1
@@ -5,7 +5,7 @@ import subprocess
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
from utils import ask_float
|
||||
from utils import ask_float, check_openscad
|
||||
|
||||
|
||||
BASE_DIR = Path(__file__).resolve().parent
|
||||
@@ -42,6 +42,8 @@ def render_scad(scad_file: Path, out_file: Path, base_radius: float, wall_height
|
||||
|
||||
|
||||
def main() -> None:
|
||||
check_openscad()
|
||||
|
||||
if not SCAD_DIR.exists():
|
||||
raise SystemExit(f"Missing SCAD directory: {SCAD_DIR}")
|
||||
|
||||
|
||||
Reference in new issue
Block a user