Enhance resource loading mechanisms
hunterhector opened this issue · comments
Hector commented
Describe the bug
The current implementation of loading resources makes assumptions that everything is stored in file system like here.
This won't be necessarily true in different scenarios, including zip data or editable installation. Python's resource features are better candidates to handle such problems.
Suggested Fix
Handle the resources using the importlib
library and treat data as Path
. Do not assume a actual file system.