mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2025-11-12 21:43:51 -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 [ -n "\$PYENV_ACTIVATE" ]; then
|
||||||
if [ "\$(pyenv version-name)" = "system" ]; then
|
if [ "\$(pyenv version-name)" = "system" ]; then
|
||||||
pyenv deactivate --no-error --verbose
|
pyenv deactivate --no-error --verbose
|
||||||
|
unset PYENV_DEACTIVATE
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
if [ "\$PYENV_ACTIVATE" != "\$(pyenv prefix)" ]; then
|
if [ "\$PYENV_ACTIVATE" != "\$(pyenv prefix)" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user