|
|
@ -1,16 +1,16 @@ |
|
|
|
if [ -z "$OPENPILOT_ENV" ]; then |
|
|
|
if [ -z "$OPENPILOT_ENV" ]; then |
|
|
|
export PYTHONPATH="$HOME/openpilot:$PYTHONPATH" |
|
|
|
export PYTHONPATH="$HOME/openpilot:$PYTHONPATH" |
|
|
|
|
|
|
|
export PATH="$HOME/.pyenv/bin:$PATH" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Pyenv suggests we place the below two lines in .profile before we source |
|
|
|
|
|
|
|
# .bashrc, but there is no simple way to guarantee we do this correctly |
|
|
|
|
|
|
|
# programmatically across heterogeneous systems. For end-user convenience, |
|
|
|
|
|
|
|
# we add the lines here as a workaround. |
|
|
|
|
|
|
|
# https://github.com/pyenv/pyenv/issues/1906 |
|
|
|
|
|
|
|
export PYENV_ROOT="$HOME/.pyenv" |
|
|
|
|
|
|
|
|
|
|
|
unamestr=`uname` |
|
|
|
unamestr=`uname` |
|
|
|
if [[ "$unamestr" == 'Linux' ]]; then |
|
|
|
if [[ "$unamestr" == 'Linux' ]]; then |
|
|
|
export PATH="$HOME/.pyenv/bin:$PATH" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Pyenv suggests we place the below two lines in .profile before we source |
|
|
|
|
|
|
|
# .bashrc, but there is no simple way to guarantee we do this correctly |
|
|
|
|
|
|
|
# programmatically across heterogeneous systems. For end-user convenience, |
|
|
|
|
|
|
|
# we add the lines here as a workaround. |
|
|
|
|
|
|
|
# https://github.com/pyenv/pyenv/issues/1906 |
|
|
|
|
|
|
|
export PYENV_ROOT="$HOME/.pyenv" |
|
|
|
|
|
|
|
eval "$(pyenv init --path)" |
|
|
|
eval "$(pyenv init --path)" |
|
|
|
|
|
|
|
|
|
|
|
eval "$(pyenv virtualenv-init -)" |
|
|
|
eval "$(pyenv virtualenv-init -)" |
|
|
|