Fix for worker thread spawning of python

This commit is contained in:
2026-02-16 12:33:09 -08:00
parent 441ec74069
commit 56760f9dff
+3
View File
@@ -16,6 +16,9 @@ namespace PythonInterop {
// Initiilize python // Initiilize python
PythonEngine.Initialize(); PythonEngine.Initialize();
// Needed because C# calls the python from each connections worker thread
PythonEngine.BeginAllowThreads();
} }
// This is thread blocking, runs on the main thread, and takes multiple minutes so probabaly need to run on a background thread at some point // This is thread blocking, runs on the main thread, and takes multiple minutes so probabaly need to run on a background thread at some point