#!/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