#! /bin/sh
if [ "$(id -u)" = 0 ]; then
    idarg="-i $(id -u myproxyoauth)"
fi
export PYTHONPATH="/usr/share/myproxy-oauth"
exec 
python_flavor= 
if [ -z "" ]; then python_flavor="tmp"; fi 
if [ "" != "python2" ]; then 
    if [ -d build ]; then mv build _build.; fi 
    if [ -d _build.python2 ]; then mv _build.python2 build; fi 
fi 
echo python2 > _current_flavor 

/usr/bin/python2 /usr/share/myproxy-oauth/myproxy-oauth-setup "$@" ${idarg}

python_flavor= 
if [ -z "" ]; then python_flavor="tmp"; fi 
if [ "" != "python3" ]; then 
    if [ -d build ]; then mv build _build.; fi 
    if [ -d _build.python3 ]; then mv _build.python3 build; fi 
fi 
echo python3 > _current_flavor 

/usr/bin/python3 /usr/share/myproxy-oauth/myproxy-oauth-setup "$@" ${idarg}

