Kaydet (Commit) a57773e4 authored tarafından Thomas Heller's avatar Thomas Heller

Fix Issue #4875: find_library can return directories instead of files

(on win32)
üst a985a3ae
......@@ -52,12 +52,12 @@ if os.name == "nt":
# See MSDN for the REAL search order.
for directory in os.environ['PATH'].split(os.pathsep):
fname = os.path.join(directory, name)
if os.path.exists(fname):
if os.path.isfile(fname):
return fname
if fname.lower().endswith(".dll"):
continue
fname = fname + ".dll"
if os.path.exists(fname):
if os.path.isfile(fname):
return fname
return None
......
......@@ -282,6 +282,9 @@ Core and Builtins
Library
-------
- Issue #4875: On win32, ctypes.util.find_library does no longer
return directories.
- Issue #5142: Add the ability to skip modules while stepping to pdb.
- Issue #1309567: Fix linecache behavior of stripping subdirectories when
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment