Fix and workaround for i18n messages extraction code.
[blender.git] / release / scripts / modules / bl_i18n_utils / settings.py
index 230c351d80c260673e849621360e42c80b834c01..8a0170b86d496a370d3650caf42856dafd93d66f 100644 (file)
@@ -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())