Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

find_library can return directories instead of files #49125

Closed
rfk mannequin opened this issue Jan 8, 2009 · 2 comments
Closed

find_library can return directories instead of files #49125

rfk mannequin opened this issue Jan 8, 2009 · 2 comments
Assignees
Labels
topic-ctypes type-bug An unexpected behavior, bug, or error

Comments

@rfk
Copy link
Mannequin

rfk mannequin commented Jan 8, 2009

BPO 4875
Nosy @theller

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/theller'
closed_at = <Date 2009-05-05.19:53:43.235>
created_at = <Date 2009-01-08.00:43:35.081>
labels = ['ctypes', 'type-bug']
title = 'find_library can return directories instead of files'
updated_at = <Date 2009-05-05.19:53:43.233>
user = 'https://bugs.python.org/rfk'

bugs.python.org fields:

activity = <Date 2009-05-05.19:53:43.233>
actor = 'theller'
assignee = 'theller'
closed = True
closed_date = <Date 2009-05-05.19:53:43.235>
closer = 'theller'
components = ['ctypes']
creation = <Date 2009-01-08.00:43:35.081>
creator = 'rfk'
dependencies = []
files = []
hgrepos = []
issue_num = 4875
keywords = []
message_count = 2.0
messages = ['79385', '87276']
nosy_count = 2.0
nosy_names = ['theller', 'rfk']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue4875'
versions = ['Python 2.6', 'Python 3.0', 'Python 3.1', 'Python 2.7']

@rfk
Copy link
Mannequin Author

rfk mannequin commented Jan 8, 2009

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()?

@rfk rfk mannequin assigned theller Jan 8, 2009
@rfk rfk mannequin added topic-ctypes type-bug An unexpected behavior, bug, or error labels Jan 8, 2009
@theller
Copy link

theller commented May 5, 2009

Fixed in trunk (rev 72352), release26-maint (rev 72353), py3k (rev
72354), and release30-maint (rev 72355).

@theller theller closed this as completed May 5, 2009
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic-ctypes type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant