mirror of
https://github.com/a2-4am/4cade.git
synced 2024-11-26 17:49:43 +00:00
14 lines
358 B
Python
Executable File
14 lines
358 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
# usage:
|
|
# builddisplaynames.py < build/GAMES.CONF > build/DISPLAY.CONF
|
|
|
|
import sys
|
|
|
|
for line in sys.stdin:
|
|
if line.startswith("["): continue
|
|
if "=" not in line:
|
|
prefix, key = line.split(",")
|
|
line = prefix + "," + key.strip() + "=" + key.replace(".", " ").title().replace(" Ii", " II")
|
|
print(line, end="")
|