Skip to content

Commit a75c0a0

Browse files
authored
Merge pull request #1178 from iceljc/features/refine-py-interpreter
Features/refine py interpreter
2 parents 88b18c0 + 7a156b3 commit a75c0a0

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Plugins/BotSharp.Plugin.PythonInterpreter/PythonInterpreterPlugin.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,12 @@ public void Configure(IApplicationBuilder app)
3939
{
4040
Runtime.PythonDLL = pyLoc;
4141
PythonEngine.Initialize();
42-
#if DEBUG
4342
_pyState = PythonEngine.BeginAllowThreads();
44-
#endif
4543

4644
lifetime.ApplicationStopping.Register(() => {
4745
try
4846
{
49-
#if DEBUG
5047
PythonEngine.EndAllowThreads(_pyState);
51-
#endif
5248
PythonEngine.Shutdown();
5349
}
5450
catch { }

0 commit comments

Comments
 (0)