KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How can I read a file that is inside my Python package? A package that I load has a number of templates (text files used as strings) that I want to load from within the program. But how do I specify the path to such file? Imagine I want to read a file from: mypackage\templates\temp_file Some kind of path manipulation? Package base path tracking?
Tags (comma-separated)
Save Edits
Cancel