Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
12345678910111213141516171819202122# Generated from vendor/TinyRecursiveModels/utils/functions.py by scripts/port_from_vendor.py# Do not edit by hand; edit the port script instead.import importlibimport inspect
def load_model_class(identifier: str, prefix: str = "dsem.models."): module_path, class_name = identifier.split('@')
# Import the module module = importlib.import_module(prefix + module_path) cls = getattr(module, class_name) return cls
def get_model_source_path(identifier: str, prefix: str = "dsem.models."): module_path, class_name = identifier.split('@')
module = importlib.import_module(prefix + module_path) return inspect.getsourcefile(module)