Просмотр исходного кода

shims: look for python*

This is required for the shims to handle `#!/usr/bin/env python3` in a
shebang, just like `python` is handled currently: it will set
`PYENV_DIR` to the root of the invoked script, which is required for a
`.python-version` script to get picked up from there.

This was rejected for rbenv, where it does not make much sense
(https://github.com/sstephenson/rbenv/pull/735).

Ref: https://github.com/yyuu/pyenv/pull/368#issuecomment-102806837
pull/379/head
Daniel Hahler 9 лет назад
Родитель
Сommit
af438abeae
1 измененных файлов: 1 добавлений и 1 удалений
  1. +1
    -1
      libexec/pyenv-rehash

+ 1
- 1
libexec/pyenv-rehash Просмотреть файл

@ -46,7 +46,7 @@ set -e
[ -n "\$PYENV_DEBUG" ] && set -x
program="\${0##*/}"
if [ "\$program" = "python" ]; then
if [[ "\$program" = "python"* ]]; then
for arg; do
case "\$arg" in
-c* | -- ) break ;;

Загрузка…
Отмена
Сохранить