Skip to content

Remove usage of __file__ from botocore now that Python 3.8 is dropped #3464

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

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

nateprewitt
Copy link
Contributor

This is an initial pass at moving us to importlib.resources instead of __file__ references. We won't be touching the tests in this iteration as the intention is to allow the core library code to run with tools like zipapp and PyOxidizer. We'll also be adding a similar PR in boto3 once we've validated this approach.

The goal here is to provide the same strings as we did previously, but derive them through importlib. Some additional testing will be needed for different installation methods.

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.

1 participant