mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2026-09-10 07:16:18 -04:00
Support prefixes autoresolved by pyenv-latest
This commit is contained in:
parent
9f3bc68f3e
commit
02f0bbe452
|
|
@ -50,6 +50,8 @@ for version in "${versions[@]}"; do
|
|||
exit 1
|
||||
fi
|
||||
PYENV_PREFIX_PATH="$(pyenv-prefix "${version}")"
|
||||
#supplied $version may be a prefix to be resolved by pyenv-latest
|
||||
version="$(basename "$PYENV_PREFIX_PATH")"
|
||||
if [ -x "${PYENV_PREFIX_PATH}/bin/python" ]; then
|
||||
if [ -f "${PYENV_PREFIX_PATH}/bin/activate" ]; then
|
||||
if [ -f "${PYENV_PREFIX_PATH}/bin/conda" ]; then
|
||||
|
|
|
|||
Loading…
Reference in a new issue