[Ironpython-users] Reload module within embedded C# app

Jimmy Schementi jschementi at gmail.com
Thu Dec 22 00:17:20 CET 2011

On Wed, Dec 21, 2011 at 5:16 PM, Daniel Fernandez
<fernandez_dan2 at hotmail.com> wrote:
> Hi Jeff,
> In my simple scenario was able to update test2. I just perform the following
> varsuccess = engine.GetSysModule().GetVariable("modules").Remove("test2");
> then I perform the ImportModule on the test module and test2 was updated.
> I'm not sure if this is correct but I received the wanted effect.  I will
> keep playing and thanks for the help.
> Danny

Yes, that's an acceptable way to do it; I have done this in
environments where recreating the ScriptRuntime was too expensive.

More information about the Ironpython-users mailing list