mirror of
https://gitea.tendokyu.moe/beerpsi/artemis-portable.git
synced 2026-09-22 22:28:07 +03:00
17 lines
368 B
Python
17 lines
368 B
Python
import os
|
|
import sys
|
|
|
|
path = os.path.join(os.getcwd(), sys.argv[1])
|
|
with open(path, encoding="utf-8") as f:
|
|
errmsg = f.readlines()
|
|
|
|
errmsg[0] = "languages english=eng;\n"
|
|
errmsg = [
|
|
line
|
|
for line in errmsg
|
|
if not line.startswith(" ") or line.startswith(" eng")
|
|
]
|
|
|
|
with open(path, "w", encoding="utf-8") as f:
|
|
f.write("".join(errmsg))
|