What is the purpose of the resources folder? #745
Closed
wpd
started this conversation in
Best Practices & Workflows
Replies: 1 comment 2 replies
-
Whoops... never mind... I just realized that I created the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
...and what are the best practices for using it?
I thought I could put a bitmap file in there and access it using PIL. but I can't figure out how to access the file.
It seems like I should be using
importlib.resources
, but, since theresources
folder is outside of thesrc
folder, I can't figure out how to make that work.I tend to run quick tests of my PyScaffold generated application with something like:
(or, technically, VSCode does that on my behalf when I press F5). Should I be doing something different so that Python can find the file I put in
resources
?Any thoughts or recommendations?
--wpd
Beta Was this translation helpful? Give feedback.
All reactions