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

Function addsitepackages

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

Add site-packages to sys.path

(known_paths, prefixes=None)

Source from the content-addressed store, hash-verified

387 return sitepackages
388
389def addsitepackages(known_paths, prefixes=None):
390 """Add site-packages to sys.path"""
391 _trace("Processing global site-packages")
392 for sitedir in getsitepackages(prefixes):
393 if os.path.isdir(sitedir):
394 addsitedir(sitedir, known_paths)
395
396 return known_paths
397
398def setquit():
399 """Define new builtins 'quit' and 'exit'.

Callers 2

venvFunction · 0.85
mainFunction · 0.85

Calls 4

_traceFunction · 0.85
getsitepackagesFunction · 0.85
addsitedirFunction · 0.85
isdirMethod · 0.45

Tested by

no test coverage detected