mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2025-11-13 22:13:52 -05:00
When changing from a virtualenv to "system", unset PYENV_DEACTIVATE. Previously the var remained set, which made it impossible to reactivate the previous virtualenv
This commit is contained in:
@@ -112,6 +112,7 @@ if [[ "$shell" != "fish" ]]; then
|
||||
if [ -n "\$PYENV_ACTIVATE" ]; then
|
||||
if [ "\$(pyenv version-name)" = "system" ]; then
|
||||
pyenv deactivate --no-error --verbose
|
||||
unset PYENV_DEACTIVATE
|
||||
return 0
|
||||
fi
|
||||
if [ "\$PYENV_ACTIVATE" != "\$(pyenv prefix)" ]; then
|
||||
|
||||
Reference in New Issue
Block a user