Skip to content

Conversation

barneygale
Copy link
Contributor

@barneygale barneygale commented Feb 27, 2025

When enumerating search paths in $PATH, ignore any entry where Path.iterdir() fails or produces no results.

See #2794

Thanks for contributing, make sure you address all the checklists (for details on how see development documentation)

  • ran the linter to address style issues (tox -e fix)
  • wrote descriptive pull request text
  • ensured there are test(s) validating the fix
  • added news fragment in docs/changelog folder
  • updated/extended the documentation

When enumerating over search paths in `$PATH`, ignore any entry where
`Path.iterdir()` fails or produces no results.
@barneygale barneygale changed the title Ignore directories in PATH that can't be opened (#2794) Ignore directories in PATH that can't be opened Feb 27, 2025
@gaborbernat gaborbernat merged commit 1fc647e into pypa:main Feb 27, 2025
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants