[New-bugs-announce] [issue4875] find_library can return directories instead of files

Ryan Kelly report at bugs.python.org
Thu Jan 8 01:43:36 CET 2009


New submission from Ryan Kelly <ryan at rfk.id.au>:

On win32, ctypes.util.find_library uses os.path.exists() to check for
potential library files.  This means it is quite happy to return a
directory instead of a file, if one happens to exist with the
appropriate name somewhere in the search path.  Can this please be
changed to use os.path.isfile() instead of os.path.exists()?

----------
assignee: theller
components: ctypes
messages: 79385
nosy: rfk, theller
severity: normal
status: open
title: find_library can return directories instead of files
type: behavior
versions: Python 2.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4875>
_______________________________________


More information about the New-bugs-announce mailing list