#!/bin/sh -e
# Invoke version of python compiled for genbank use.  Needed since systems
# have ancient python installed


arch=`uname -m`
# try both RR and other server locations
rtdir="/genbank/runtime/$arch"
if [ ! -e $rtdir ] ; then
    rtdir="/cluster/data/genbank/runtime/$arch"
fi
LD_LIBRARY_PATH="$rtdir/lib:${LD_LIBRARY_PATH}"
export LD_LIBRARY_PATH
exec $rtdir/bin/python "$@"
