From 6da85dc1e912aaa5dc0d2982e3695697617b8936 Mon Sep 17 00:00:00 2001 From: A_D <aunderscored@gmail.com> Date: Mon, 4 Jan 2021 19:33:30 +0200 Subject: [PATCH] Fixed creating en.template.new as a dir --- l10n.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/l10n.py b/l10n.py index 5e285adc..3a4ca53b 100755 --- a/l10n.py +++ b/l10n.py @@ -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):