Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
3bf71d80eThis file is pinned to the selected release. Download the original to open it in your design tool.
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")/../.."
# Bootstrap workspace venv if missing
if [[ ! -d .venv ]]; then
python3 -m venv .venv
fi
# Determine venv paths based on actual venv layout
if [[ -d .venv/Scripts ]]; then
PIP=".venv/Scripts/pip"
SCADM=".venv/Scripts/scadm"
else
PIP=".venv/bin/pip"
SCADM=".venv/bin/scadm"
fi
# Upgrade scadm from PyPI
"$PIP" install --upgrade --quiet scadm
# Install/update OpenSCAD and libraries
"$SCADM" install