Module refinery.lib.resources
A wrapper module to read local data resources.
Expand source code Browse git
"""
A wrapper module to read local data resources.
"""
from __future__ import annotations
from importlib import resources
from refinery import data
def datapath(name: str):
return resources.files(data).joinpath(name)
Functions
def datapath(name)-
Expand source code Browse git
def datapath(name: str): return resources.files(data).joinpath(name)