2011/6/1 Kristian Rink <kawazu428@googlemail.com>

I do run jython as part of our webapps inside a glassfish container
whereas jython comes bundled with the webapp war. By now, I see that
python.path includes the <webapp>/WEB-INF/lib/Lib folder all along with
the stuff inside the jython (standalone) jar. I also learnt that there
are a few options to manually set python.path programmatically or via
configuration, but I am not completely sure to which extent this

What I would like to do is to keep this python.path and prepend an
additional folder to python.path and which should happen in the webapp
configuration, best of course inside web.xml. Is there some way of
doing so?

TIA and all the best,

I don't understand. Paths usually don't go in web.xml files. But you can use the "context-param" tag and later read the value with:

String path = getServletContext().getInitParameter("path");

And use this value as a path to add to the Python path.



My blog and profile (http://pierrethibault.posterous.com)
YouTube page (http://www.youtube.com/user/tubetib)
Twitter (http://twitter.com/pierreth2)