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

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'ui_translate/update_svn.py')
-rw-r--r--ui_translate/update_svn.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/ui_translate/update_svn.py b/ui_translate/update_svn.py
index 5cac2996..81435046 100644
--- a/ui_translate/update_svn.py
+++ b/ui_translate/update_svn.py
@@ -63,6 +63,8 @@ class UI_OT_i18n_updatetranslation_svn_branches(bpy.types.Operator):
context.window_manager.progress_begin(0, len(i18n_sett.langs) + 1)
context.window_manager.progress_update(0)
if not self.use_skip_pot_gen:
+ env = os.environ.copy()
+ env["ASAN_OPTIONS"] = "exitcode=0"
# Generate base pot from RNA messages (we use another blender instance here, to be able to perfectly
# control our environment (factory startup, specific addons enabled/disabled...)).
# However, we need to export current user settings about this addon!
@@ -79,7 +81,8 @@ class UI_OT_i18n_updatetranslation_svn_branches(bpy.types.Operator):
# Not working (UI is not refreshed...).
#self.report({'INFO'}, "Extracting messages, this will take some time...")
context.window_manager.progress_update(1)
- if subprocess.call(cmmd):
+ ret = subprocess.run(cmmd, env=env)
+ if ret.returncode != 0:
self.report({'ERROR'}, "Message extraction process failed!")
context.window_manager.progress_end()
return {'CANCELLED'}