MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / load_module

Function load_module

tests/test_profile_map_v2.py:611–618  ·  view source on GitHub ↗
(name, path)

Source from the content-addressed store, hash-verified

609
610
611def load_module(name, path):
612 spec = importlib.util.spec_from_file_location(name, str(path))
613 if spec is None or spec.loader is None:
614 raise RuntimeError("cannot load requested module: " + str(path))
615 module = importlib.util.module_from_spec(spec)
616 sys.modules[name] = module
617 spec.loader.exec_module(module)
618 return module
619
620
621def main():

Callers 1

mainFunction · 0.85

Calls 1

strFunction · 0.85

Tested by

no test coverage detected