mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
Fix pyenv-prefix to trim "/bin" in pyenv prefix system
This commit is contained in:
parent
edb5a32620
commit
140808e3d4
1 changed files with 1 additions and 0 deletions
|
@ -32,6 +32,7 @@ for version in "${versions[@]}"; do
|
|||
if [ "$version" = "system" ]; then
|
||||
PYTHON_PATH="$(PYENV_VERSION="${version}" pyenv-which python || true)"
|
||||
PYENV_PREFIX_PATH="${PYTHON_PATH%/*}"
|
||||
PYENV_PREFIX_PATH="${PYENV_PREFIX_PATH%/bin}"
|
||||
else
|
||||
PYENV_PREFIX_PATH="${PYENV_ROOT}/versions/${version}"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue