|
From: <bc...@wo...> - 2001-07-09 09:46:07
|
[storck]
>What must I do that the PythonInterpreter finds several py-libraries?? If I
>excecute the following:
>
>try {
> PythonInterpreter pInt = new PythonInterpreter();
> pInt.execfile("D:\\Daten\\Projekte\\PythonTest\\XML_RPC_Client.py");
> pInt = null;
>} catch (Exception e) {
> e.printStackTrace();
>}
>
>I get that error-message:
>
>Dispatching:
>Traceback (innermost last):
> File "D:\Daten\Projekte\PythonTest\XML_RPC_Client.py", line 1, in ?
>ImportError: no module named xmlrpclib
>
>What must I do that the interpreter can find that xmlrpclib. Where is the
>interpreter searching for it?
Jython searched for modules in its sys.path list. The default value for
sys.path comes from the python.home property and from the python.path
properties. When embedding with the PythonInterpreter you can set these
properties like this:
http://www.jython.org/cgi-bin/faqw.py?req=show&file=faq06.002.htp
regards,
finn
|