MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / find_sconstruct_paths

Function find_sconstruct_paths

tools/ci/bsp_detail.py:126–134  ·  view source on GitHub ↗
(project_dir, exclude_paths)

Source from the content-addressed store, hash-verified

124 return df
125
126def find_sconstruct_paths(project_dir, exclude_paths):
127 sconstruct_paths = []
128 for root, dirs, files in os.walk(project_dir):
129
130 if all(exclude_path not in root for exclude_path in exclude_paths):
131
132 if 'SConstruct' in files:
133 sconstruct_paths.append(root)
134 return sconstruct_paths
135
136def output_to_markdown(df, output_file):
137 with open(output_file, 'w', encoding='utf-8') as file:

Callers 1

bsp_detail.pyFile · 0.70

Calls 1

walkMethod · 0.80

Tested by

no test coverage detected