From: T.J. Jankun-K. <tj...@ac...> - 2002-03-05 18:29:20
|
Greetings, This is probably a question that has come up before, but I cannot find the appropriate answer on the web site or the mailing list as of yet. I have a complex set of python classes with a Jython UI front end. When run interactively, everything is fine. When I run it in an application (using PythonInterpreter to set python.home correctly), everything is fine as well. However, I want to distribute the code as an applet. When loading the applet, an exception occurs: AttributeError: class 'visframework.test' has not attribute 'TestTransform' visframework.test is a module and TestTransform is a class w/in the module. It is used in the applet as part of its initialization. The test module contains several classes used to test the application. I cannot set python.home in the applet (it is against the applet security policy). So my question is essentially this: how do I (or can I) properly package the compiled (with jythonc) python source into an applet that can be distributed w/o assuming jython is installed on the client machine? Any help is appreciated. More details can be given if needed. Thanks. TJK |