mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-07 20:31:01 -05:00
Add workaround for /bin/python
(#628)
This commit is contained in:
parent
e93ae00ca1
commit
4df7cf2dd6
1 changed files with 1 additions and 0 deletions
|
@ -32,6 +32,7 @@ OLDIFS="$IFS"
|
|||
if [ "$version" = "system" ]; then
|
||||
if PYTHON_PATH="$(PYENV_VERSION="${version}" pyenv-which python 2>/dev/null)"; then
|
||||
PYENV_PREFIX_PATH="${PYTHON_PATH%/bin/*}"
|
||||
PYENV_PREFIX_PATH="${PYENV_PREFIX_PATH:-/}"
|
||||
else
|
||||
echo "pyenv: system version not found in PATH" >&2
|
||||
exit 1
|
||||
|
|
Loading…
Reference in a new issue