[IronPython] Clearing context

Slide slide.o.mix at gmail.com
Wed Jan 9 08:54:43 PST 2008


I have embedded IronPython into my C# app to use as a scripting
engine. I am having a problem with reloading the context when a
dependent module changes. What I mean is I have something like the
following as my main script.

from mymod import myfunc

class MyClass(SomeNameSpace.IMyInterface):
    def SomeFunc(self):
        myfunc()

If I change this file and try reloading my script, it takes the
modifications just fine and runs the new code. If I modify mymod, but
not the main script, I get the old code from mymod run. Is there
something I can do to force it to reload the imported scripts as well?

Thanks

slide


More information about the Users mailing list