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 d9b23b7 commit 049b02eCopy full SHA for 049b02e
graalpython/lib-python/3/ctypes/__init__.py
@@ -465,6 +465,9 @@ def LoadLibrary(self, name):
465
pydll = LibraryLoader(PyDLL)
466
467
if _os.name == "nt":
468
+ # GraalPy change: we set the dllhandle here
469
+ _sys.dllhandle = _dlopen("python-native.dll", 0)
470
+ # End GraalPy change
471
pythonapi = PyDLL("python dll", None, _sys.dllhandle)
472
elif _sys.platform == "cygwin":
473
pythonapi = PyDLL("libpython%d.%d.dll" % _sys.version_info[:2])
0 commit comments