MCPcopy Index your code
hub / github.com/nodejs/node / get_module

Function get_module

tools/test.py:51–56  ·  view source on GitHub ↗
(name, path)

Source from the content-addressed store, hash-verified

49if sys.version_info >= (3, 5):
50 from importlib import machinery, util
51 def get_module(name, path):
52 loader_details = (machinery.SourceFileLoader, machinery.SOURCE_SUFFIXES)
53 spec = machinery.FileFinder(path, loader_details).find_spec(name)
54 module = util.module_from_spec(spec)
55 spec.loader.exec_module(module)
56 return module
57else:
58 import imp
59 def get_module(name, path):

Callers 1

GetConfigurationMethod · 0.85

Calls 1

closeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…