MCPcopy Index your code
hub / github.com/RustPython/RustPython / _init_pathinfo

Function _init_pathinfo

Lib/site.py:155–165  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

153
154
155def _init_pathinfo():
156 """Return a set containing all existing file system items from sys.path."""
157 d = set()
158 for item in sys.path:
159 try:
160 if os.path.exists(item):
161 _, itemcase = makepath(item)
162 d.add(itemcase)
163 except TypeError:
164 continue
165 return d
166
167
168def 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