#! /usr/bin/env sh # # Simple script to automatically start ximgpsf # Set up default variable values if not supplied by the user. #PRG=`type -p $0` >/dev/null 2>&1 PRG=`which $0` #echo $PRG # If PRG is a symlink, trace it to the real home directory #while [ -L "$PRG" ] #do # newprg=`expr "\`/bin/ls -l "$PRG"\`" : ".*$PRG -> \(.*\)"` # expr "$newprg" : / >/dev/null || newprg="`dirname $PRG`/$newprg" # PRG="$newprg" #done XIM_HOME=`dirname $PRG` #echo $XIM_HOME PYTHONPATH=$XIM_HOME:$XIM_HOME/models:$XIM_HOME/lib:$XIM_HOME/rosat PYTHONHOME=$XIM_HOME/Python export PYTHONPATH export PYTHONHOME LD_LIBRARY_PATH=$XIM_HOME/lib:$XIM_HOME/libextra export LD_LIBRARY_PATH #echo "LD_LIBRARY_PATH = $LD_LIBRARY_PATH" TCL_LIBRARY=$XIM_HOME/Python/lib/tcl8.3 TK_LIBRARY=$XIM_HOME/Python/lib/tk8.3 export TCL_LIBRARY export TK_LIBRARY #$XIM_HOME/python_cimage -u -O $XIM_HOME/Execute.py $XIM_HOME $* $XIM_HOME/xapython -u -O $XIM_HOME/Execute.py $XIM_HOME $*