Skip to content

Commit

Permalink
tools: configure PYTHONPATH in pipenv (commaai#23361)
Browse files Browse the repository at this point in the history
* automatically set PYTHONPATH in pipenv

* remove other place this was set
  • Loading branch information
gregjhogan committed Jan 4, 2022
1 parent 8dd8b19 commit 3e5a273
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
venv/
.env
.clang-format
.DS_Store
.tags
Expand Down
2 changes: 0 additions & 2 deletions tools/openpilot_env.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions update_requirements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ if [ -d "./xx" ]; then
fi

if [ -z "$PIPENV_SYSTEM" ]; then
echo "PYTHONPATH=${PWD}" > .env
RUN="pipenv run"
else
RUN=""
Expand Down

0 comments on commit 3e5a273

Please sign in to comment.