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

2011-12-21 Thread Jimmy Schementi
On Wed, Dec 21, 2011 at 5:16 PM, Daniel Fernandez 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 u

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

2011-12-21 Thread Daniel Fernandez
but I received the wanted effect. I will keep playing and thanks for the help. Danny > Date: Wed, 21 Dec 2011 11:53:36 -0800 > Subject: Re: [Ironpython-users] Reload module within embedded C# app > From: jdha...@gmail.com > To: fernandez_d...@hotmail.com > CC: ironpython-users@pytho

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

2011-12-21 Thread Jeff Hardy
On Wed, Dec 21, 2011 at 11:32 AM, Daniel Fernandez wrote: > Hi Jeff, > > I downloaded NWSGI and see where you call engine.ImportModule in > the WsgiApplication.GetApplicationInfo method. It works great with that > module changes. > > I couldn't get modules that were changed from the entry module t

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

2011-12-20 Thread Jeff Hardy
On Tue, Dec 20, 2011 at 6:33 PM, Daniel Fernandez 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 fig

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

2011-12-20 Thread Daniel Fernandez
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