We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d0d5f3 commit c12236aCopy full SHA for c12236a
geodatasets/data.py
@@ -1,8 +1,8 @@
1
-import importlib.resources
+import pkgutil
2
3
from . import json
4
from .lib import _load_json
5
6
-json = importlib.resources.read_text(json, "database.json")
+json = pkgutil.get_data("geodatasets", "json/database.json")
7
8
data = _load_json(json)
pyproject.toml
@@ -39,7 +39,7 @@ include = [
39
]
40
41
[tool.setuptools.package-data]
42
-myModule = ["json/providers.json"]
+json = ["json/providers.json"]
43
44
[tool.coverage.run]
45
omit = ["geodatasets/tests/*"]
0 commit comments