mirror of
https://github.com/pyenv/pyenv.git
synced 2024-12-18 04:12:38 -05:00
0f596d2504
This reverts commit070e1c859f
, reversing changes made to3faeda67bb
.
21 lines
460 B
Bash
Executable file
21 lines
460 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Summary: Explain how the current Python version is set
|
|
set -e
|
|
[ -n "$PYENV_DEBUG" ] && set -x
|
|
|
|
unset PYENV_VERSION_ORIGIN
|
|
|
|
OLDIFS="$IFS"
|
|
IFS=$'\n' scripts=(`pyenv-hooks version-origin`)
|
|
IFS="$OLDIFS"
|
|
for script in "${scripts[@]}"; do
|
|
source "$script"
|
|
done
|
|
|
|
if [ -n "$PYENV_VERSION_ORIGIN" ]; then
|
|
echo "$PYENV_VERSION_ORIGIN"
|
|
elif [ -n "$PYENV_VERSION" ]; then
|
|
echo "PYENV_VERSION environment variable"
|
|
else
|
|
pyenv-version-file
|
|
fi
|