Skip to content

Commit 861f659

Browse files
authored
Replace pkg_resources with importlib.resources for catalog file handling (#133)
1 parent 7483d26 commit 861f659

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

offsets_db_data/data.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
from importlib.resources import files
2+
13
import intake
2-
import pkg_resources
34

4-
catalog_file = pkg_resources.resource_filename('offsets_db_data', 'catalog.yaml')
5+
catalog_file = files('offsets_db_data').joinpath('catalog.yaml')
56
catalog = intake.open_catalog(catalog_file)

0 commit comments

Comments
 (0)