瀏覽代碼

Set `PYENV_BIN_PATH` in `PATH` even if the version is `system` (fixes #98)

pull/101/merge
Yamashita Yuu 10 年之前
父節點
當前提交
314937d599
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. +3
    -3
      libexec/pyenv-exec

+ 3
- 3
libexec/pyenv-exec 查看文件

@ -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…
取消
儲存