Jython - problem import os
Delaney, Timothy (Tim)
tdelaney at avaya.com
Thu Aug 9 01:34:46 CEST 2007
nmin at freenet.de wrote:
> I'm using Jython in combination with Java, webservices and jboss4.0.4.
> The webservice is implemented in java and creates an PythonInterpreter
> object which loads the jython scripts.
> I wrote an jython script which uses a function from another jython
> file called library.py.
> ImportError: no module named javaos in library.py.
> Any ideas?
You need to make sure that the Jython Lib directory is on sys.path - the
easiest way it to put it in the same directory as jython.jar e.g. in
your webapp have:
More information about the Python-list