Fix language file copy

This commit is contained in:
Balazs Perlaki-Horvath 2024-01-15 01:15:31 +01:00
parent 006b57dcea
commit 1c6d61a8d9

View File

@ -135,9 +135,8 @@ class InfoParser:
return ["**/qqq.lproj"] return ["**/qqq.lproj"]
else: else:
# Copy the enforced lang to the custom folder # Copy the enforced lang to the custom folder
for lang_file in Path().parent.rglob(f'{enforced}.lproj'): for lang_file in Path().cwd().parent.rglob(f'{enforced}.lproj'):
lang_file.copy
shutil.copytree( 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 # exclude all other languages under Support/*.lproj
return ["**/*.lproj"] return ["**/*.lproj"]