mirror of https://github.com/commaai/openpilot.git
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:
parent
fef9d05507
commit
f6a9445de8
|
@ -1,4 +1,5 @@
|
|||
venv/
|
||||
.env
|
||||
.clang-format
|
||||
.DS_Store
|
||||
.tags
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -32,6 +32,7 @@ if [ -d "./xx" ]; then
|
|||
fi
|
||||
|
||||
if [ -z "$PIPENV_SYSTEM" ]; then
|
||||
echo "PYTHONPATH=${PWD}" > .env
|
||||
RUN="pipenv run"
|
||||
else
|
||||
RUN=""
|
||||
|
|
Loading…
Reference in New Issue