From: Balaji S. <bal...@gm...> - 2007-09-19 18:21:45
|
Thanks a lot Jeff. You are awesomeThat worked. I have a slight question though... I am getting two symbols f and x that are functions in the __main__ space even though I havent defined them. What are they? Thanks Balaji On 9/19/07, Jeff Emanuel <jem...@fr...> wrote: > > > I haven't tried this. It might work in your cirumstance. > > > // Remove old __main__. > Py.getSystemState().modules.__delitem__("__main__"); > // Recreate. > > mod = imp.addModule("__main__"); > interp.setLocals(mod.__dict__); > |