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 a318a9d commit 50aff5fCopy full SHA for 50aff5f
1 file changed
Lib/ctypes/__init__.py
@@ -549,9 +549,11 @@ def LoadLibrary(self, name):
549
550
if _os.name == "nt":
551
pythonapi = PyDLL("python dll", None, _sys.dllhandle)
552
-elif _sys.platform in ["android", "cygwin"]:
+elif _sys.platform == "android":
553
# These are Unix-like platforms which use a dynamically-linked libpython.
554
pythonapi = PyDLL(_sysconfig.get_config_var("LDLIBRARY"))
555
+elif _sys.platform == "cygwin":
556
+ pythonapi = PyDLL(_sysconfig.get_config_var("DLLLIBRARY"))
557
else:
558
pythonapi = PyDLL(None)
559
0 commit comments