Message3807

Author otmarhumbel
Recipients otmarhumbel, pjenvey
Date 2008-11-22.22:17:27
SpamBayes Score 4.8046486e-06
Marked as misclassified No
Message-id <1227392247.3.0.0712854723718.issue1180@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2008-11-22 22:17:27otmarhumbelsetmessageid: <1227392247.3.0.0712854723718.issue1180@psf.upfronthosting.co.za>
2008-11-22 22:17:27otmarhumbelsetrecipients: + otmarhumbel, pjenvey
2008-11-22 22:17:27otmarhumbellinkissue1180 messages
2008-11-22 22:17:27otmarhumbelcreate