From 1c6d61a8d9202073b3df441be524bd772c83a625 Mon Sep 17 00:00:00 2001 From: Balazs Perlaki-Horvath Date: Mon, 15 Jan 2024 01:15:31 +0100 Subject: [PATCH] Fix language file copy --- src/info_parser.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/info_parser.py b/src/info_parser.py index 65b3984..94b682e 100644 --- a/src/info_parser.py +++ b/src/info_parser.py @@ -135,9 +135,8 @@ class InfoParser: return ["**/qqq.lproj"] else: # Copy the enforced lang to the custom folder - for lang_file in Path().parent.rglob(f'{enforced}.lproj'): - lang_file.copy + for lang_file in Path().cwd().parent.rglob(f'{enforced}.lproj'): shutil.copytree( - lang_file, Path().parent/"custom"/self.brand_name, dirs_exist_ok=True) + lang_file, Path().cwd().parent/"custom"/self.brand_name, dirs_exist_ok=True) # exclude all other languages under Support/*.lproj return ["**/*.lproj"]