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
+2
-7
@@ -1,12 +1,11 @@
|
||||
#!/bin/python3
|
||||
from __future__ import annotations
|
||||
|
||||
import shutil
|
||||
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
|
||||
@@ -58,11 +57,7 @@ def render_scad(
|
||||
|
||||
|
||||
def main() -> 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."
|
||||
)
|
||||
check_openscad()
|
||||
|
||||
scad_file = SCAD_DIR / "weave_planter.scad"
|
||||
|
||||
|
||||
Reference in new issue
Block a user