mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2024-11-23 13:09:49 +00:00
20 lines
409 B
Plaintext
20 lines
409 B
Plaintext
|
# -*- shell-script -*-
|
||
|
# Sets PYVERSIONS to be all pyenv versions we have
|
||
|
if [[ $0 == ${BASH_SOURCE[0]} ]] ; then
|
||
|
echo "This script should be *sourced* rather than run directly through bash"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
olddir=$(pwd)
|
||
|
mydir=$(dirname ${BASH_SOURCE[0]})
|
||
|
cd $mydir
|
||
|
|
||
|
all=""
|
||
|
for file in pyenv-{olde{st,r},newer}-versions ; do
|
||
|
. $mydir/$file
|
||
|
all="$all $PYVERSIONS"
|
||
|
done
|
||
|
|
||
|
PYVERSIONS="$all"
|
||
|
cd $olddir
|