|
From: <bo...@hu...> - 2007-07-31 20:06:33
|
Hello-
I have a simple java test where I'm using the PythonInterpreter to
exec one statement: PythonInterpreter.exec("import myCPythonFile").
This goes through with no problem and jython is able to create the
myCPythonFile$py.class file.
So I package this functionality into a jar. I included the
standalone jython.jar, and an application.jar containing:
MyText.class, myCPythonFile.py.
I execute this packaged test and get the following error:
ImportError: no module named myCPythonFile.
My question is whether the error is caused by incorrect
python.path'ing or because jython can't create the
myCPythonFile$py.class? The idea is to distribute the application
with uncompiled cpython files.
Thanks,
Bob
--
Click here to double your salary by becoming a medical transcriber.
http://tagline.hushmail.com/fc/Ioyw6h4eKoYvmsEAwhrsU7lc7OTa5saEOlD6a2hPQA0swRq1QQ4JJI/
|