MCPcopy Index your code
hub / github.com/pgadmin-org/pgadmin4 / load_source

Function load_source

pkg/pip/setup_pip.py:20–25  ·  view source on GitHub ↗
(name, path)

Source from the content-addressed store, hash-verified

18
19# Load a source file
20def load_source(name, path):
21 if not os.path.exists(path):
22 print("ERROR: Could not find %s" % path)
23 sys.exit(1)
24
25 return SourceFileLoader(name, path).load_module()
26
27
28# Ensure the global server mode is set.

Callers

nothing calls this directly

Calls 1

existsMethod · 0.45

Tested by

no test coverage detected