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

Function get_lib_layout

PC/layout/main.py:86–105  ·  view source on GitHub ↗
(ns)

Source from the content-addressed store, hash-verified

84
85
86def get_lib_layout(ns):
87 def _c(f):
88 if f in EXCLUDE_FROM_LIB:
89 return False
90 if f.is_dir():
91 if f in TEST_DIRS_ONLY:
92 return ns.include_tests
93 if f in TCLTK_DIRS_ONLY:
94 return ns.include_tcltk
95 if f in IDLE_DIRS_ONLY:
96 return ns.include_idle
97 if f in VENV_DIRS_ONLY:
98 return ns.include_venv
99 else:
100 if f in TCLTK_FILES_ONLY:
101 return ns.include_tcltk
102 return True
103
104 for dest, src in rglob(ns.source / "Lib", "**/*", _c):
105 yield dest, src
106
107
108def get_tcltk_lib(ns):

Callers 2

get_layoutFunction · 0.85
generate_source_filesFunction · 0.85

Calls 1

rglobFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…