MCPcopy Create free account
hub / github.com/eshirazi/python-with-braces / addpackage

Function addpackage

Lib/site.py:131–169  ·  view source on GitHub ↗

Process a .pth file within the site-packages directory: For each line in the file, either combine it with sitedir to a path and add that to known_paths, or execute it if it starts with 'import '.

(sitedir, name, known_paths)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

addsitedirFunction · 0.85

Calls 13

_init_pathinfoFunction · 0.85
enumerateFunction · 0.85
makepathFunction · 0.85
startswithMethod · 0.80
rstripMethod · 0.80
format_exceptionMethod · 0.80
splitlinesMethod · 0.80
openFunction · 0.70
joinMethod · 0.45
existsMethod · 0.45
appendMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected