Fix pyenv-prefix to trim "/bin" in pyenv prefix system

This commit is contained in:
Tanix 2013-12-12 20:59:34 +09:00
parent edb5a32620
commit 140808e3d4

View file

@ -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