initial commit

This commit is contained in:
klein panic
2024-09-29 01:46:07 -04:00
commit ba6e6914d1
7576 changed files with 1356825 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
import os
import pkgutil
import sys
from .lib import _load_json
data_path = os.path.join(sys.prefix, "share", "xyzservices", "providers.json")
if os.path.exists(data_path):
with open(data_path) as f:
json = f.read()
else:
json = pkgutil.get_data("xyzservices", "data/providers.json")
providers = _load_json(json)