MCPcopy Index your code
hub / github.com/python/cpython / _init_pathinfo

Function _init_pathinfo

Lib/site.py:153–163  ·  view source on GitHub ↗

Return a set containing all existing file system items from sys.path.

()

Source from the content-addressed store, hash-verified

151
152
153def _init_pathinfo():
154 """Return a set containing all existing file system items from sys.path."""
155 d = set()
156 for item in sys.path:
157 try:
158 if os.path.exists(item):
159 _, itemcase = makepath(item)
160 d.add(itemcase)
161 except TypeError:
162 continue
163 return d
164
165
166def addpackage(sitedir, name, known_paths):

Callers 2

addpackageFunction · 0.85
addsitedirFunction · 0.85

Calls 4

setFunction · 0.85
makepathFunction · 0.85
existsMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…