Thanks a lot Jeff. You are awesome
That 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 <jemanuel@frii.com> 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__);