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

Move resource management to importlib.resources #59

Open
gnn opened this issue Nov 22, 2020 · 0 comments
Open

Move resource management to importlib.resources #59

gnn opened this issue Nov 22, 2020 · 0 comments
Assignees
Labels
☝️ decision wanted Please participate in the discussion 🚀 feature New feature or feature request

Comments

@gnn
Copy link
Collaborator

gnn commented Nov 22, 2020

Right now, resources are accessed via a package's __file__ or __path__ attribute. As of Python 3.7 there is a standardized way in which this can be handled in Python, namely via importlib.resources. I suggest dropping support for Python 3.6 and refactoring the code relying on __file__ and/or __path__ to use the new mechanism, but I'd like to hear other people's thoughts about this as well.

@gnn gnn added the 🚀 feature New feature or feature request label Nov 22, 2020
@gnn gnn assigned gnn, gplssm and IlkaCu Nov 22, 2020
@gnn gnn added the ☝️ decision wanted Please participate in the discussion label Nov 22, 2020
gnn added a commit that referenced this issue Mar 15, 2021
khelfen pushed a commit that referenced this issue Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
☝️ decision wanted Please participate in the discussion 🚀 feature New feature or feature request
Projects
None yet
Development

No branches or pull requests

3 participants