Update makeHeader.py

This commit is contained in:
Akitake 2024-07-03 19:25:58 +02:00 committed by GitHub
parent 2fe598afc5
commit c59297796c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -49,7 +49,6 @@ def process(file_path, json=''):
match = regex.search(line)
if match:
json_path = match.group(4).strip()
# NOT DONE
if json == '' or json.replace('\\', '/').replace("./", '') in json_path:
variant = match.group(1).strip()
dateCode = match.group(3).strip()
@ -73,4 +72,4 @@ if __name__ == "__main__":
exit("Usage: python makeHeader.py <(optional)json_path>")
entries, count = process("SUPPORTED.md", json_path)
print(f"\nUpdated {entries} entrie(s) over {count} file(s)")
print(f"\nUpdated {entries} entrie(s) over {count} file(s)")