MCPcopy Create free account
hub / github.com/ccagml/leetcode-extension / loadModule

Function loadModule

resources/debug/entry/python3/entry.py:280–289  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

278
279
280def loadModule():
281 # add module to search path
282 parsedPath = Path(sys.argv[1])
283 sys.path.append(parsedPath.parent)
284
285 # load module
286 spec = importlib.util.spec_from_file_location(parsedPath.stem, sys.argv[1])
287 module = importlib.util.module_from_spec(spec)
288 spec.loader.exec_module(module)
289 return module
290
291
292// @@stub-for-code@@

Callers 1

startFunction · 0.85

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected