image3d-student / run-local.sh
Lucasgitguy-co's picture
Release v0.1.0: local Image3D Student prototype under Apache-2.0
1738cdf verified
Raw History Blame Contribute Delete
511 Bytes
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")"
if [ -x .venv/bin/python ]; then
exec .venv/bin/python -m image3d_student.cli "$@"
fi
# Reuse the environment installed during this chat when running in the delivered outputs folder.
if [ -x ../../work/image3d-student/.venv/bin/python ]; then
export PYTHONPATH="$PWD/src${PYTHONPATH:+:$PYTHONPATH}"
exec ../../work/image3d-student/.venv/bin/python -m image3d_student.cli "$@"
fi
echo "No local environment found. Run bash setup.sh first."
exit 1