sf64/include/assets/namefix.py
petrie911 9346a22c63
Asset names and headers (#131)
* assets and such

* here goes

* here goes again

* once more

* once more

* type fixing

* type fixing

* type fixing

* here goes

* here goes

* format
2024-02-16 21:58:59 -03:00

14 lines
351 B
Python

import os
for subdir, dirs, files in os.walk('.'):
for file in files:
with open(file, 'r') as header:
htxt = header.read()
name = str.upper(file[4:-2])
print(name)
htxt = htxt.replace("FIX.", name)
print(htxt)
with open(file, 'w') as header:
header.write(htxt)