MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _init_pathinfo

Function _init_pathinfo

tools/python-3.11.9-amd64/Lib/site.py:148–158  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

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

Callers 2

addpackageFunction · 0.85
addsitedirFunction · 0.85

Calls 4

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

Tested by

no test coverage detected