|
From: Harlan H. <ha...@tb...> - 2001-01-12 22:52:42
|
I'm not a fan of using the CLASSPATH environment variable, and more in
favor of using the command line options. Currently the only way (i know
of) to get more stuff in the classpath for jpython script is to use the
environment variable. So my suggested fix is to replace the current
jpython script with something like the following.
#!/bin/sh
for arg do
if [ $arg = "-cp" ] || [ $arg = "-classpath" ] ; then
cpisnext=1
elif [ $cpisnext = 1 ] ; then
CLASSPATH=$arg
cpisnext=""
else
arglist="$arglist $arg"
fi
done
exec java -Dpython.home=/export/home2/packages/JPython-1.1 -classpath
"/export/home2/packages/JPython-1.1/jpython.jar:$CLASSPATH" org.python.util.jpython
$arglist
I'm not an expert shell scripter, so there may be a better way to do this,
maybe with optarg or something. but the idea is to allow the -cp or
-classpath option, and pass this to the java interpreter very early on.
could something similar be done for windows?
maybe this feature could make it into a python release?
comments welcome. thanks for your time.
---
ah... juicyfruit
|