diff --git a/libexec/pyenv-rehash b/libexec/pyenv-rehash index 094d6173..5fcb6646 100755 --- a/libexec/pyenv-rehash +++ b/libexec/pyenv-rehash @@ -67,19 +67,6 @@ set -e [ -n "\$PYENV_DEBUG" ] && set -x program="\${0##*/}" -if [[ "\$program" = "python"* ]]; then - for arg; do - case "\$arg" in - -c* | -- ) break ;; - */* ) - if [ -f "\$arg" ]; then - export PYENV_DIR="\${arg%/*}" - break - fi - ;; - esac - done -fi export PYENV_ROOT="$PYENV_ROOT" exec "$(command -v pyenv)" exec "\$program" "\$@"