mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-07 20:31:01 -05:00
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
This commit is contained in:
parent
36c5cbf74f
commit
af438abeae
1 changed files with 1 additions and 1 deletions
|
@ -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 ;;
|
||||
|
|
Loading…
Reference in a new issue