Skip to content

Commit

Permalink
Fix a bug that naev.py doesn't copy the po directories.
Browse files Browse the repository at this point in the history
  • Loading branch information
oo13 committed Apr 22, 2024
1 parent 964359e commit ddd9e71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/build/naev.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ def wrapper(*args):
for mo_path in os.listdir(os.path.join(build_root, "po")):
mo_path = os.path.join(build_root, "po", mo_path)
if os.path.isdir(mo_path):
dest_dir = os.path.join(build_root, "dat/gettext")
mo_name = os.path.basename(mo_path)
dest_dir = os.path.join(build_root, "dat/gettext", mo_name)
shutil.copytree(mo_path, dest_dir, dirs_exist_ok=True)
logger.info(f"Copied directory {mo_path} to {dest_dir}")

Expand Down

0 comments on commit ddd9e71

Please sign in to comment.