Files
linux-workspace/rc.local/pyenv.sh
2024-09-01 08:11:58 +02:00

14 lines
286 B
Bash

# Initialize pyenv
if is_slow_init; then
PYENV_ROOT="${PYENV_ROOT:-$HOME/.pyenv}"
if [[ -d "$PYENV_ROOT" ]]; then
export PYENV_ROOT
if ! can_run pyenv; then
append_path "$PYENV_ROOT/bin"
fi
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
fi
fi