Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2018-12-24 00:03:12 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2018-12-24 00:03:43 +0300
commit59b530ca1810f109c3696814655e427d912ad6b7 (patch)
tree7032778ef0d79601810821949d851ba23f231bb8 /release/scripts/modules/bl_i18n_utils/settings.py
parent1158b9f73a3d9903657a95736897f570c2cb46ad (diff)
Fix and workaround for i18n messages extraction code.
Diffstat (limited to 'release/scripts/modules/bl_i18n_utils/settings.py')
-rw-r--r--release/scripts/modules/bl_i18n_utils/settings.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/release/scripts/modules/bl_i18n_utils/settings.py b/release/scripts/modules/bl_i18n_utils/settings.py
index 230c351d80c..8a0170b86d4 100644
--- a/release/scripts/modules/bl_i18n_utils/settings.py
+++ b/release/scripts/modules/bl_i18n_utils/settings.py
@@ -552,6 +552,8 @@ class I18nSettings:
self.__dict__ = {uid: data for uid, data in globals().items() if not uid.startswith("_")}
if isinstance(fname, str):
if not os.path.isfile(fname):
+ # Assume it is already real JSon string...
+ self.from_json(fname)
return
with open(fname) as f:
self.from_json(f.read())