Fixed bug in python scripting engine
This commit is contained in:
@@ -48,7 +48,6 @@ public class PythonScriptable : IScriptable
|
|||||||
|
|
||||||
public void Update(ICallbackInfos callbackInfos)
|
public void Update(ICallbackInfos callbackInfos)
|
||||||
{
|
{
|
||||||
PythonEngine.Initialize();
|
|
||||||
using (Py.GIL())
|
using (Py.GIL())
|
||||||
{
|
{
|
||||||
pyToolSet = ToolSet.ToPython();
|
pyToolSet = ToolSet.ToPython();
|
||||||
@@ -56,7 +55,6 @@ public class PythonScriptable : IScriptable
|
|||||||
scope.Set("toolset", pyToolSet);
|
scope.Set("toolset", pyToolSet);
|
||||||
scope.Exec("update(toolset)");
|
scope.Exec("update(toolset)");
|
||||||
}
|
}
|
||||||
PythonEngine.Shutdown();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool IsScript(string fileName)
|
public bool IsScript(string fileName)
|
||||||
|
|||||||
Reference in New Issue
Block a user