mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-21 00:03:45 +08:00
tools: configure PYTHONPATH in pipenv (#23361)
* automatically set PYTHONPATH in pipenv * remove other place this was set old-commit-hash: 3e5a2730227603e06e2b0df657dd7a3e874a6bd1
This commit is contained in:
@@ -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=""
|
||||
|
||||
Reference in New Issue
Block a user