mirror of
https://github.com/two-torial/sp2xpatcher.git
synced 2025-02-17 11:18:33 +01:00
Update makeHeader.py
This commit is contained in:
parent
2fe598afc5
commit
c59297796c
@ -49,7 +49,6 @@ def process(file_path, json=''):
|
|||||||
match = regex.search(line)
|
match = regex.search(line)
|
||||||
if match:
|
if match:
|
||||||
json_path = match.group(4).strip()
|
json_path = match.group(4).strip()
|
||||||
# NOT DONE
|
|
||||||
if json == '' or json.replace('\\', '/').replace("./", '') in json_path:
|
if json == '' or json.replace('\\', '/').replace("./", '') in json_path:
|
||||||
variant = match.group(1).strip()
|
variant = match.group(1).strip()
|
||||||
dateCode = match.group(3).strip()
|
dateCode = match.group(3).strip()
|
||||||
@ -73,4 +72,4 @@ if __name__ == "__main__":
|
|||||||
exit("Usage: python makeHeader.py <(optional)json_path>")
|
exit("Usage: python makeHeader.py <(optional)json_path>")
|
||||||
|
|
||||||
entries, count = process("SUPPORTED.md", 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)")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user