diff --git a/.gitignore b/.gitignore index 3e87dcc4334ee0..06c6117b18e485 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ venv/ +.env .clang-format .DS_Store .tags diff --git a/tools/openpilot_env.sh b/tools/openpilot_env.sh index f8ce6901c24459..ac73cc8305c4c2 100755 --- a/tools/openpilot_env.sh +++ b/tools/openpilot_env.sh @@ -1,6 +1,4 @@ if [ -z "$OPENPILOT_ENV" ]; then - 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 diff --git a/update_requirements.sh b/update_requirements.sh index fe35c4eec67a25..bece43a51aa8cf 100755 --- a/update_requirements.sh +++ b/update_requirements.sh @@ -32,6 +32,7 @@ if [ -d "./xx" ]; then fi if [ -z "$PIPENV_SYSTEM" ]; then + echo "PYTHONPATH=${PWD}" > .env RUN="pipenv run" else RUN=""