summaryrefslogtreecommitdiff
path: root/include/assets/namefix.py
blob: 2fc6a60dff262e6fe42dbc153388a95efe303602 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)