mirror of
https://github.com/pyenv/pyenv.git
synced 2024-12-22 21:32:39 +00:00
Merge pull request #88 from pwdtnx/fix-prefix-system
Fix pyenv-prefix to trim "/bin" in `pyenv prefix system`
This commit is contained in:
commit
76bf3ee0d6
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ PYENV_PREFIX_PATHS=()
|
|||
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="${PYTHON_PATH%/bin/*}"
|
||||
else
|
||||
PYENV_PREFIX_PATH="${PYENV_ROOT}/versions/${version}"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue