mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-10-04 21:33:58 +08:00
9 lines
396 B
Bash
Executable File
9 lines
396 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
if [ -f /TICI ]; then
|
|
# A plain device shell does not activate openpilot's Python environment.
|
|
export PYTHONPATH="/data/roadscore-feasibility/venv/lib/python3.12/site-packages${PYTHONPATH:+:$PYTHONPATH}"
|
|
exec /usr/local/venv/bin/python "$(dirname "$0")/prototype/normal_onroad.py" "$@"
|
|
fi
|
|
exec python3 "$(dirname "$0")/prototype/normal_onroad.py" "$@"
|