Files
StarPilot/roadscore/routes-tool
T
firestar5683 0766138ca2 RoadScore
2026-09-19 00:22:33 -05:00

12 lines
529 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
root="$(cd "$(dirname "$0")" && pwd)"
if [ "${1:-inventory}" = fetch ]; then
runtime="${ROADSCORE_RUNTIME:-/Users/dominickthompson/starpilot/.host_runtime/darwin/worktree}"
python="$runtime/.venv/bin/python3"
if [ -f /TICI ]; then runtime=/data/openpilot; python=/usr/local/venv/bin/python; fi
cd "$runtime"
PYTHONPATH="$runtime${PYTHONPATH:+:$PYTHONPATH}" exec "$python" "$root/prototype/route_library.py" "$@"
fi
exec python3 "$root/prototype/route_library.py" "${@:-inventory}"