From: <bc...@wo...> - 2001-08-26 11:49:39
|
[ted] >I'm looking at adding jython to a java application i'm writing. To make life >easier for the end user, I'd like to distribute jython as part of the >application jar. > >My question is this: >Is it possible or practical to distribute the python modules ( eg. string.py >) in the jar? In jython-2.0 you will have to write your own __import__ hook. That can be kind of tricky to do. >Would jython support having a jar pathname pushed into the >library path ( eg. sys.path.insert( 0, '/home/foo/application.jar!/lib' ) )? This feature have been added to Jython 2.1a3. I would welcome feedback on its usefullnes in real life applications. regards, finn |