diff --git a/src/Indexer/Models/Script.cs b/src/Indexer/Models/Script.cs index 45806c8..76c8dae 100644 --- a/src/Indexer/Models/Script.cs +++ b/src/Indexer/Models/Script.cs @@ -48,7 +48,6 @@ public class PythonScriptable : IScriptable public void Update(ICallbackInfos callbackInfos) { - PythonEngine.Initialize(); using (Py.GIL()) { pyToolSet = ToolSet.ToPython(); @@ -56,7 +55,6 @@ public class PythonScriptable : IScriptable scope.Set("toolset", pyToolSet); scope.Exec("update(toolset)"); } - PythonEngine.Shutdown(); } public bool IsScript(string fileName)