#!/usr/bin/env bash # vetta toolkit launcher — Linux / macOS. (Windows: use run.bat) # Resolves the repo dir, picks python3/python, forwards all args to vetta.py. set -e DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # Pick the first interpreter that actually runs (skips broken stubs such as the # Windows Store `python3` alias, which exists but has no runtime installed). PY="" for cand in python3 python; do if command -v "$cand" >/dev/null 2>&1 && "$cand" -c 'import sys; sys.exit(0)' >/dev/null 2>&1; then PY="$cand" break fi done if [ -z "$PY" ]; then echo "No working python3/python found — install Python 3.9+." >&2 exit 1 fi exec "$PY" "$DIR/vetta.py" "$@"