mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-11-10 14:33:42 +08:00
13 lines
465 B
Bash
Executable File
13 lines
465 B
Bash
Executable File
#!/bin/sh
|
|
# Run a bridge script with openpilot's Python. dbus-next and zeroconf are vendored
|
|
# beside the bridge, so nothing is downloaded or installed on comma.
|
|
set -eu
|
|
bridge_dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
|
|
export PYTHONPATH="$bridge_dir/../vendor${PYTHONPATH:+:$PYTHONPATH}"
|
|
for python_bin in /usr/local/venv/bin/python /data/openpilot/.venv/bin/python; do
|
|
if [ -x "$python_bin" ]; then
|
|
exec "$python_bin" "$@"
|
|
fi
|
|
done
|
|
exec python3 "$@"
|