From: Wouter D. <wou...@te...> - 2007-11-15 12:13:56
|
Hi, why can't I access an Java Object during the import of a module. In Java, I have: DrawMediator drawMediator = new DrawMediator(); PythonInterpreter interp = new PythonInterpreter(); interp.set("DrawMediator", drawMediator); I have a module called header.py which has to be imported, but I can't reference the DrawMediator object during that import process. I get: "NameError: DrawMediator" I CAN however reference the DrawMediator object once header.py (or any other module for that matter) is processed (in that case offcourse I have to adapt header.py first so it gets imported without errors) The same is true for a simple String that I want to reference during the module load phase. What am I doing wrong ? Kind regards, Wouter |