Message3807
it looks like below (not the most elegant shell script code, but
working);
and of course the windows version needs to be updated, too
# try to dynamically determine jython home
# (this script can reside in jython home, or in the /bin subdirectory)
if [ -z "$JYTHON_HOME" ] ; then
if [ "$PRG" = "./jython" ] ; then
# current dir is the script dir
JYTHON_HOME_1=`pwd`
else
# current dir is not the script dir
JYTHON_HOME_1=`dirname "$PRG"`
fi
if [ -f "$JYTHON_HOME_1"/jython-complete.jar ] ; then
JYTHON_HOME=$JYTHON_HOME_1
elif [ -f "$JYTHON_HOME_1"/jython.jar ] ; then
JYTHON_HOME=$JYTHON_HOME_1
else
JYTHON_HOME=`dirname "$JYTHON_HOME_1"`
fi
fi |
|
Date |
User |
Action |
Args |
2008-11-22 22:17:27 | otmarhumbel | set | messageid: <1227392247.3.0.0712854723718.issue1180@psf.upfronthosting.co.za> |
2008-11-22 22:17:27 | otmarhumbel | set | recipients:
+ otmarhumbel, pjenvey |
2008-11-22 22:17:27 | otmarhumbel | link | issue1180 messages |
2008-11-22 22:17:27 | otmarhumbel | create | |
|