From 140808e3d407bfd24096acef16e9052431459186 Mon Sep 17 00:00:00 2001 From: Tanix Date: Thu, 12 Dec 2013 20:59:34 +0900 Subject: [PATCH] Fix pyenv-prefix to trim "/bin" in `pyenv prefix system` --- libexec/pyenv-prefix | 1 + 1 file changed, 1 insertion(+) diff --git a/libexec/pyenv-prefix b/libexec/pyenv-prefix index f305b626..882390e1 100755 --- a/libexec/pyenv-prefix +++ b/libexec/pyenv-prefix @@ -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