From c0bc2e08e76bd6c0abd36fa082ee00b4746e62dc Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Wed, 29 Dec 2021 06:26:40 -0700 Subject: [PATCH] absolute path all the time --- tools/openpilot_env.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/openpilot_env.sh b/tools/openpilot_env.sh index 50a15421227079..62e6e215e1446c 100755 --- a/tools/openpilot_env.sh +++ b/tools/openpilot_env.sh @@ -1,5 +1,5 @@ if [ -z "$OPENPILOT_ENV" ]; then - OP_ROOT="$(dirname "$(dirname "${BASH_SOURCE[0]}")")" + OP_ROOT="$(dirname "$(dirname "$(realpath -s "$0")")")" export PYTHONPATH="$OP_ROOT:$PYTHONPATH" export PATH="$HOME/.pyenv/bin:$PATH"