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.
for arg do
if [ $arg = "-cp" ] || [ $arg = "-classpath" ] ; then
elif [ $cpisnext = 1 ] ; then
exec java -Dpython.home=/export/home2/packages/JPython-1.1 -classpath
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.
Get latest updates about Open Source Projects, Conferences and News.