MCPcopy Create free account
hub / github.com/Robbyant/lingbot-map / _import_from_file

Function _import_from_file

demo_render/interactive_viewer/server.py:35–39  ·  view source on GitHub ↗
(module_name: str, file_path: str)

Source from the content-addressed store, hash-verified

33
34
35def _import_from_file(module_name: str, file_path: str):
36 spec = _ilu.spec_from_file_location(module_name, file_path)
37 mod = _ilu.module_from_spec(spec)
38 spec.loader.exec_module(mod)
39 return mod
40
41
42_DEMO_RENDER_DIR = Path(__file__).resolve().parents[1]

Callers 1

server.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected