diff --git a/tools/openpilot_env.sh b/tools/openpilot_env.sh index 81ae00d64d..5bb0f88fd6 100755 --- a/tools/openpilot_env.sh +++ b/tools/openpilot_env.sh @@ -1,5 +1,6 @@ +OP_ROOT=$(git rev-parse --show-toplevel) if [ -z "$OPENPILOT_ENV" ]; then - export PYTHONPATH="$HOME/openpilot:$PYTHONPATH" + export PYTHONPATH="$OP_ROOT:$PYTHONPATH" export PATH="$HOME/.pyenv/bin:$PATH" # Pyenv suggests we place the below two lines in .profile before we source