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

Jeff Hardy jdhardy at gmail.com
Wed Dec 21 07:37:38 CET 2011


On Tue, Dec 20, 2011 at 6:33 PM, Daniel Fernandez
<fernandez_dan2 at hotmail.com> wrote:
> Hi All,
>
> I have an embedded Python engine in my C# app that executes python scripts.
> I have a filewatcher watching if any python scripts have been modified.  I
> am trying to perform a reload within my C# app but I didn't couldn't figure
> out how to perform this. The best I could figured out was to Compile the
> ScriptSource again when the change occurs. Any tips??

That's what I do for NWSGI (more or less). When a script change is
detected it reloads, recompiles, and executes the script, and then
pulls the variables that it needs and continues on.

- Jeff


More information about the Ironpython-users mailing list