#!/usr/bin/env bash
# Thin launcher: prefer the repo venv if deploy.sh created one,
# else fall back to system python3.
set -euo pipefail
REPO="$(cd "$(dirname "$(readlink -f "$0")")/.." && pwd)"
if [ -x "$REPO/.venv/bin/python3" ]; then
    exec "$REPO/.venv/bin/python3" -m pipekit "$@"
fi
exec python3 -m pipekit "$@"
