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

Make the debug command safe for use in a zipapp #11248

Merged
merged 2 commits into from
Jul 11, 2022

Conversation

pfmoore
Copy link
Member

@pfmoore pfmoore commented Jul 11, 2022

The pip debug command reads the vendor.txt file. This fixes that code to use importlib.resources, rather than assuming file is in the filesystem, which makes it safe to use in a zipapp.

@pfmoore pfmoore merged commit c0fb4bf into pypa:main Jul 11, 2022
@pfmoore pfmoore deleted the debug_resources branch July 11, 2022 16:53
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants