Skip to content

Commit f371b20

Browse files
committed
new libraries added
1 parent b65f9f0 commit f371b20

File tree

45 files changed

+1001
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+1001
-3
lines changed

DSPythonNet3/DSPythonNet3Evaluator.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,11 @@ internal static bool InitializePython()
426426
Runtime.PythonDLL = Path.Join(Python.Included.Installer.EmbeddedPythonHome, Python.Included.Installer.PYTHON_VERSION + ".dll");
427427
}
428428

429+
// Detect current .NET thread apartment and make comtypes match it
430+
var apt = System.Threading.Thread.CurrentThread.GetApartmentState();
431+
var comApt = (apt == System.Threading.ApartmentState.STA) ? "STA" : "MTA";
432+
Environment.SetEnvironmentVariable("COMTYPES_APARTMENT", comApt, EnvironmentVariableTarget.Process);
433+
429434
PythonEngine.Initialize();
430435
PythonEngine.BeginAllowThreads();
431436

DSPythonNet3/THIRD_PARTY_NOTICES.txt

Lines changed: 918 additions & 3 deletions
Large diffs are not rendered by default.
Binary file not shown.
105 KB
Binary file not shown.
Binary file not shown.
24.7 KB
Binary file not shown.
248 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)