diff --git a/tools/openpilot_env.sh b/tools/openpilot_env.sh index 81ae00d64d..3412c32d68 100755 --- a/tools/openpilot_env.sh +++ b/tools/openpilot_env.sh @@ -1,5 +1,6 @@ if [ -z "$OPENPILOT_ENV" ]; then - export PYTHONPATH="$HOME/openpilot:$PYTHONPATH" + OP_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")"/.. && pwd)" + export PYTHONPATH="$OP_ROOT:$PYTHONPATH" export PATH="$HOME/.pyenv/bin:$PATH" # Pyenv suggests we place the below two lines in .profile before we source