1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-14 16:27:13 +03:00

Fixed creating en.template.new as a dir

This commit is contained in:
A_D 2021-01-04 19:33:30 +02:00 committed by Athanasius
parent dbc357ebcd
commit 6da85dc1e9

View File

@ -372,7 +372,7 @@ if __name__ == "__main__":
)
if seen:
target_path = pathlib.Path(LOCALISATION_DIR) / 'en.template.new'
target_path.mkdir(exist_ok=True)
target_path.parent.mkdir(exist_ok=True)
with target_path.open('w', encoding='utf-8') as target_file:
target_file.write(f'/* Language name */\n"{LANGUAGE_ID}" = "English";\n\n')
for thing in sorted(seen, key=str.lower):