Fixed bug in python scripting engine

This commit is contained in:
2025-06-08 04:27:32 +02:00
parent f4e493b8e0
commit 0f21376c3d

View File

@@ -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)