Fix pyenv initialization

This commit is contained in:
2023-09-24 17:59:05 +02:00
parent 7cd2ac70cb
commit 8261335e92

View File

@@ -1,8 +1,12 @@
# Initializae pyenv
# Initialize pyenv
if (( ! $LWS_FAST )); then
if can_run pyenv; then
export PYENV_ROOT=${PYENV_ROOT:-$HOME/.pyenv}
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 -)"
fi
fi