mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2025-11-12 13:33:52 -05:00
activate "root" environment of anaconda/miniconda if environment name is not given
This commit is contained in:
@@ -50,8 +50,7 @@ for version_string in "${versions[@]}"; do
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
echo "pyenv-virtualenv: version \`${version_string}' is not a virtualenv" 1>&2
|
||||
exit 1
|
||||
VIRTUALENV_PREFIX_PATHS=("${VIRTUALENV_PREFIX_PATHS[@]}" "${PREFIX}")
|
||||
fi
|
||||
else
|
||||
VIRTUALENV_PREFIX_PATH="$(real_prefix "${version}" || base_prefix "${version}" || true)"
|
||||
|
||||
Reference in New Issue
Block a user