From aaf7f0dc70e768f10ae307841a230e29fedf0986 Mon Sep 17 00:00:00 2001 From: Saumya Jain Date: Thu, 21 Mar 2024 09:57:24 +0100 Subject: [PATCH] check_missing_translations for windows fixing the paths to be used correctly CURA-11732 --- scripts/check_missing_translations.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/check_missing_translations.py b/scripts/check_missing_translations.py index 1ff678e56a..f7fff4b7e3 100755 --- a/scripts/check_missing_translations.py +++ b/scripts/check_missing_translations.py @@ -82,15 +82,15 @@ args = args_parser.parse_args() repo = git.Repo('.') -languages_dir = os.path.join('resources', 'i18n') +languages_dir = '/'.join(['resources', 'i18n']) -language_dirs = [os.path.join(languages_dir, dir_path) for dir_path in os.listdir('resources/i18n')] +language_dirs = ['/'.join([languages_dir, dir_path]) for dir_path in os.listdir('resources/i18n')] language_dirs = [language for language in language_dirs if os.path.isdir(language)] for language_dir in language_dirs: for translation_file in os.listdir(language_dir): if translation_file.endswith('.po'): - translation_file_path = os.path.join(language_dir, translation_file) + translation_file_path = '/'.join([language_dir, translation_file]) blob = repo.commit(args.previous_version).tree / translation_file_path print(f'Processing file {translation_file_path}') with tempfile.NamedTemporaryFile(suffix='.po') as tmp_file: