8000
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.
1 parent c75229a commit a0a1dc1Copy full SHA for a0a1dc1
src/runtime/runtime.cs
@@ -37,6 +37,12 @@ private static string GetDefaultDllName()
37
string dll = Environment.GetEnvironmentVariable("PYTHONNET_PYDLL");
38
if (dll is not null) return dll;
39
40
+ try
41
+ {
42
+ LibraryLoader.Instance.GetFunction(IntPtr.Zero, "PyUnicode_GetMax");
43
+ return null;
44
+ } catch (MissingMethodException) { }
45
+
46
string verString = Environment.GetEnvironmentVariable("PYTHONNET_PYVER");
47
if (!Version.TryParse(verString, out var version)) return null;
48
0 commit comments