compass.io.package_path¶
- compass.io.package_path(package, resource)[source]¶
A replacement for deprecated
importlib.resources.path()
: https://github.com/python/importlib_resources/blob/7e9020a1b84726fdc6ba71ee2893119d1ee61e02/importlib_resources/_legacy.py- Parameters:
package (Package) – The python package for the resource
resource (Resource) – The file within the package