We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 88b18c0 + 7a156b3 commit a75c0a0Copy full SHA for a75c0a0
src/Plugins/BotSharp.Plugin.PythonInterpreter/PythonInterpreterPlugin.cs
@@ -39,16 +39,12 @@ public void Configure(IApplicationBuilder app)
39
{
40
Runtime.PythonDLL = pyLoc;
41
PythonEngine.Initialize();
42
-#if DEBUG
43
_pyState = PythonEngine.BeginAllowThreads();
44
-#endif
45
46
lifetime.ApplicationStopping.Register(() => {
47
try
48
49
50
PythonEngine.EndAllowThreads(_pyState);
51
52
PythonEngine.Shutdown();
53
}
54
catch { }
0 commit comments