Re: [Python.NET] Reloading modules

2017-04-16 Thread Denis Akhiyarov
Hi Evan (Ebam?), This was not possible until recently due to some issues with PythonEngine.Shutdown(). But it should be fixed in latest pythonnet 2.3.0 according to this bug report: https://github.com/pythonnet/pythonnet/issues/245 If it still doesn't work for you, then please report back your

[Python.NET] Reloading modules

2017-04-16 Thread Evan Davey
Hi, I am using Python.Net embedded inside an application. The application allows me to select and run a python file (which then allows me to use Python to access that application's C# SDK). string code; using (var streamReader = new StreamReader(scriptFile, Encoding.UTF8))