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.
This commit is contained in:
Bastien Montagne
2022-01-03 11:48:24 +01:00
parent e51864a357
commit 6a4ee3fd56

View File

@@ -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,