Debian Codegraph @

libexec/pyenv-version-origin

raw symbols SCIP
1 #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. bash
2 # Summary: Explain how the current Python version is set
3 set -e
4 [scip-shell system . . `[`. -n "$PYENV_DEBUG" ] && set -x
5
6 unset PYENV_VERSION_ORIGIN
7
8 OLDIFS="$IFS"
9 IFS=$'\n' scripts=(`pyenv-hooks version-origin`)
10 IFS="$OLDIFS"
11 for script in "${scripts[@]}"; do
12 source "$script"
13 done
14
15 if [scip-shell system . . `[`. -n "$PYENV_VERSION_ORIGIN" ]; then
16 echoscip-shell system . . echo. "$PYENV_VERSION_ORIGIN"
17 elif [scip-shell system . . `[`. -n "$PYENV_VERSION" ]; then
18 echoscip-shell system . . echo. "PYENV_VERSION environment variable"
19 else
20 pyenv-version-file
21 fi