MCPcopy Create free account
hub / github.com/congo-cc/congo-parser-generator / extend_path

Function extend_path

examples/python/testfiles/pkgutil.py:267–358  ·  view source on GitHub ↗

Extend a package's path. Intended use is to place the following code in a package's __init__.py: from pkgutil import extend_path __path__ = extend_path(__path__, __name__) For each directory on sys.path that has a subdirectory that matches the package name, add the sub

(path, name)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

get_importerFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected