Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use pkgutil.get_data for zip-safe resource loading
When running from a Zip file (`zipapp`, `*.pyz`), loading resources from package data can not be done by directly reading files relative to `__file__`, since there is no valid path on the file system for zipped files. Using `pkgutil.get_data` ensures that loading files from a Zip archive is handled accordingly. Resolved: python-poetry#2965
- Loading branch information