tools: configure PYTHONPATH in pipenv (#23361)

* automatically set PYTHONPATH in pipenv

* remove other place this was set
old-commit-hash: 3e5a273022
This commit is contained in:
Greg Hogan 2022-01-03 20:15:10 -08:00 committed by GitHub
parent fef9d05507
commit f6a9445de8
3 changed files with 2 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
venv/
.env
.clang-format
.DS_Store
.tags

View File

@ -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

View File

@ -32,6 +32,7 @@ if [ -d "./xx" ]; then
fi
if [ -z "$PIPENV_SYSTEM" ]; then
echo "PYTHONPATH=${PWD}" > .env
RUN="pipenv run"
else
RUN=""