[Bf-blender-cvs] [6a4ee3fd560] master: Fix (unreported) i18n utils failing to create MO files in trunk.

Bastien Montagne noreply at git.blender.org
Mon Jan 3 11:49:26 CET 2022


Commit: 6a4ee3fd5603f2c2ee98c3cf03ca70eea189925f
Author: Bastien Montagne
Date:   Mon Jan 3 11:48:24 2022 +0100
Branches: master
https://developer.blender.org/rB6a4ee3fd5603f2c2ee98c3cf03ca70eea189925f

Fix (unreported) i18n utils failing to create MO files in trunk.

Not really important anymore, since those are not used by Blender, but
better be consistent.

===================================================================

M	release/scripts/modules/bl_i18n_utils/utils.py

===================================================================

diff --git a/release/scripts/modules/bl_i18n_utils/utils.py b/release/scripts/modules/bl_i18n_utils/utils.py
index e13eb15dfd2..2e0113051a5 100644
--- a/release/scripts/modules/bl_i18n_utils/utils.py
+++ b/release/scripts/modules/bl_i18n_utils/utils.py
@@ -1135,6 +1135,7 @@ class I18nMessages:
         # XXX Temp solution, until I can make own mo generator working...
         import subprocess
         with tempfile.NamedTemporaryFile(mode='w+', encoding="utf-8") as tmp_po_f:
+            os.makedirs(os.path.dirname(fname), exist_ok=True)
             self.write_messages_to_po(tmp_po_f)
             cmd = (
                 self.settings.GETTEXT_MSGFMT_EXECUTABLE,



More information about the Bf-blender-cvs mailing list