1
0
DDNet_Server/scripts/languages/find_unchanged.py
Your Name ff5da79d57 init
2023-04-14 23:38:34 +08:00

17 lines
321 B
Python
Executable File

#!/usr/bin/env python3
import os
import sys
import twlang
os.chdir(os.path.dirname(__file__) + "/../..")
if len(sys.argv) < 2:
print("usage: python find_unchanged.py <file>")
sys.exit()
infile = sys.argv[1]
trans = twlang.translations(infile)
for tran, (_, expr, _) in trans.items():
if tran == expr:
print(tran)