export PATH="/bb:$PATH"

if [ -d /tmp/tcloop/APPNAME/ ]; then
   if [ -f /usr/bin/dh_python3 ]; then
        rm /usr/bin/dh_python3
        cp -af /tmp/tcloop/APPNAME/usr/bin/dh_python3 /usr/bin/
   fi

   if [ -f /usr/bin/py3clean ]; then
        rm /usr/bin/py3clean
        cp -af /tmp/tcloop/APPNAME/usr/bin/py3clean /usr/bin/
   fi

   if [ -f /usr/bin/pdb3 ]; then
	rm /usr/bin/pdb3
   	cp -af /tmp/tcloop/APPNAME/usr/bin/pdb3 /usr/bin/
   fi

   if [ -f /usr/bin/py3compile ]; then
        rm /usr/bin/py3compile
        cp -af /tmp/tcloop/APPNAME/usr/bin/py3compile /usr/bin/
   fi

   if [ -f /usr/bin/pydoc3 ]; then
	rm /usr/bin/pydoc3
	cp -af /tmp/tcloop/APPNAME/usr/bin/pydoc3 /usr/bin/
   fi

   if [ -f /usr/bin/pygettext3 ]; then
	rm /usr/bin/pygettext3
	cp -af /tmp/tcloop/APPNAME/usr/bin/pygettext3 /usr/bin/
   fi
fi


