From: Samuele P. <pe...@in...> - 2001-09-19 18:03:15
|
Hi [kevin.mcnamee] > test2.py: > --------- > from com.ericsson.test1 import * > test1.main([""]) # <--- C style??? test1 has no main function defined, OTOH the top level statements of a module are executed on importing so no need for that. from.com.ericsson.test1 import * import * from a java package should not be used in production code, in particular its support through jythonc is quite fragile, and does not work with the 1st workaround proposed in the previous message , I don't rembember for the patch ... so a possible test2 is: import sys sys.add_package("com.ericcson.test1") from com.ericsson.test1 import test1 # ^ executes the top-level stmts in test1.py regards. |