INNER CODE UNIT · Python
process_jcalgtest_files
crocs-muni/JCAlgTest · AlgTest_Process/cplc.py:227
def process_jcalgtest_files(walk_dir, files_with_cplc, files_without_cplc):
"""
Recursively reads files with CPLC info from the provided directory.
@param walk_dir: directory with stored results for cards
@param files_with_cplc: list which will contain hash maps for the cards with CPLC defined
@param files_without_cplc: list of card names without the CPLC info
"""
files = []
print(json.dumps(list(search_files(walk_dir)), indent=2))
for filename in search_files(walk_dir):
if not os.path.isfile(filename):
continue
files.append(filename)
print(filename)
with open(filename, encoding='utf-8') as f: