mirror of
https://github.com/pyenv/pyenv.git
synced 2024-12-22 10:13:35 +00:00
pyenv-prefix returns wrong prefix if system
is given in the middle of arguments.
This commit is contained in:
parent
b4ba76a15a
commit
319000b448
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ fi
|
|||
PYENV_PREFIX_PATHS=()
|
||||
for version in "${versions[@]}"; do
|
||||
if [ "$version" = "system" ]; then
|
||||
PYTHON_PATH="$(pyenv-which python || true)"
|
||||
PYTHON_PATH="$(PYENV_VERSION="${version}" pyenv-which python || true)"
|
||||
PYENV_PREFIX_PATH="${PYTHON_PATH%/*}"
|
||||
else
|
||||
PYENV_PREFIX_PATH="${PYENV_ROOT}/versions/${version}"
|
||||
|
|
Loading…
Reference in a new issue