mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2025-01-12 02:19:31 +08:00
17 lines
530 B
Python
17 lines
530 B
Python
import os
|
|
import glob
|
|
|
|
|
|
if __name__ == "__main__":
|
|
with open("cc.ini", "w", encoding="utf-8") as fw:
|
|
for gg in glob.glob('post_build/steam_settings.EXAMPLE/*.txt'):
|
|
kk = os.path.basename(gg[:-12])
|
|
lns=[]
|
|
with open(gg, "r", encoding="utf-8") as f:
|
|
lns=['# ' + ll.strip('\n').strip('\r') for ll in f.readlines()]
|
|
for ln in lns:
|
|
fw.write(ln + '\n')
|
|
fw.write(kk + '=false' + '\n')
|
|
fw.write('' + '\n')
|
|
|