Source code for h3.config
import os
import importlib
import inspect
[docs]def get_h3_dir():
h3_module = importlib.import_module("h3")
h3_dir = os.path.dirname(inspect.getabsfile(h3_module))
return os.path.abspath(os.path.join(h3_dir, ".."))
import os
import importlib
import inspect
[docs]def get_h3_dir():
h3_module = importlib.import_module("h3")
h3_dir = os.path.dirname(inspect.getabsfile(h3_module))
return os.path.abspath(os.path.join(h3_dir, ".."))