check if openscad is installed on system

This commit is contained in:
sam.hadow committed 2026-10-07 17:30:37 +02:00
1 parent bcb20a9a5d
commit ec1939a2e1
6 files changed
+22 -11

No files matched your search

+8
View File
@@ -1,5 +1,6 @@
#!/bin/python3
from __future__ import annotations
import shutil
def ask_int(prompt: str) -> int:
@@ -39,3 +40,10 @@ def ask_yes_no(prompt: str) -> bool:
return False
print("Please enter yes or no. [y/n]")
def check_openscad() -> None:
if shutil.which("openscad") is None:
raise SystemExit(
"OpenSCAD was not found in PATH. "
"Install OpenSCAD or make sure the 'openscad' command is available."
)