Files
sunnypilot/tools/openpilot_env.sh
Adeeb Shihadeh afbfee85a3 capnp is no longer in external
old-commit-hash: a415fe1ebe
2020-05-17 13:32:26 -07:00

18 lines
414 B
Bash

if [ -z "$OPENPILOT_ENV" ]; then
export PYTHONPATH="$HOME/openpilot"
unamestr=`uname`
if [[ "$unamestr" == 'Linux' ]]; then
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
elif [[ "$unamestr" == 'Darwin' ]]; then
# msgq doesn't work on mac
export ZMQ=1
export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
fi
export OPENPILOT_ENV=1
fi