Files
linux-workspace/rc/pyenv.sh
2025-01-03 16:58:29 +00: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