mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-10 22:16:41 +00:00
fix error converting translations to .po if .po files already exist
This commit is contained in:
@@ -50,7 +50,7 @@ def convert_translations_to_po():
|
|||||||
for file in Path(temp_po_dir.name).iterdir():
|
for file in Path(temp_po_dir.name).iterdir():
|
||||||
branches_subdir = BRANCHES_DIR / file.stem
|
branches_subdir = BRANCHES_DIR / file.stem
|
||||||
branches_subdir.mkdir(exist_ok=True)
|
branches_subdir.mkdir(exist_ok=True)
|
||||||
file.rename(branches_subdir / file.name)
|
file.replace(branches_subdir / file.name)
|
||||||
|
|
||||||
temp_po_dir.cleanup()
|
temp_po_dir.cleanup()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user