mirror of
https://github.com/python/cpython.git
synced 2026-06-05 01:10:53 +00:00
gh-149831: Fix ctypes DLL library name on Cygwin (#149832)
Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
parent
a318a9d8d7
commit
50aff5fc5c
1 changed files with 3 additions and 1 deletions
|
|
@ -549,9 +549,11 @@ def LoadLibrary(self, name):
|
|||
|
||||
if _os.name == "nt":
|
||||
pythonapi = PyDLL("python dll", None, _sys.dllhandle)
|
||||
elif _sys.platform in ["android", "cygwin"]:
|
||||
elif _sys.platform == "android":
|
||||
# These are Unix-like platforms which use a dynamically-linked libpython.
|
||||
pythonapi = PyDLL(_sysconfig.get_config_var("LDLIBRARY"))
|
||||
elif _sys.platform == "cygwin":
|
||||
pythonapi = PyDLL(_sysconfig.get_config_var("DLLLIBRARY"))
|
||||
else:
|
||||
pythonapi = PyDLL(None)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue