Skip to content

Commit d7c20ed

Browse files
committed
Fix library loader usage
It was modernized in the upstream
1 parent 0d7498b commit d7c20ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/pythonengine.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public static void InitializeLibrary(string library, string directory)
155155
{
156156
if (!libraryLoaded)
157157
{
158-
var _loader = Python.Runtime.Platform.LibraryLoader.Get(Python.Runtime.Platform.NativeCodePageHelper.OperatingSystem);
158+
var _loader = Python.Runtime.Platform.LibraryLoader.Instance;
159159
_loader.Load(library, directory);
160160
libraryLoaded = true;
161161
}

0 commit comments

Comments
 (0)