mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
Set PYENV_BIN_PATH
in PATH
even if the version is system
(fixes #98)
This commit is contained in:
parent
07ae0d8e42
commit
314937d599
1 changed files with 3 additions and 3 deletions
|
@ -41,7 +41,7 @@ for script in "${scripts[@]}"; do
|
|||
done
|
||||
|
||||
shift 1
|
||||
if [ "$PYENV_VERSION" != "system" ]; then
|
||||
export PATH="${PYENV_BIN_PATH}:${PATH}"
|
||||
fi
|
||||
# CPython's `sys.executable` requires the `PYENV_BIN_PATH` to be at the top of the `PATH`.
|
||||
# https://github.com/yyuu/pyenv/issues/98
|
||||
export PATH="${PYENV_BIN_PATH}:${PATH}"
|
||||
exec -a "$PYENV_COMMAND" "$PYENV_COMMAND_PATH" "$@"
|
||||
|
|
Loading…
Reference in a new issue