Changeset View
Changeset View
Standalone View
Standalone View
ui_translate/update_svn.py
| Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Lines | def execute(self, context): | ||||
| self.settings = settings.settings | self.settings = settings.settings | ||||
| i18n_sett = context.window_manager.i18n_update_svn_settings | i18n_sett = context.window_manager.i18n_update_svn_settings | ||||
| self.settings.FILE_NAME_POT = i18n_sett.pot_path | self.settings.FILE_NAME_POT = i18n_sett.pot_path | ||||
| context.window_manager.progress_begin(0, len(i18n_sett.langs) + 1) | context.window_manager.progress_begin(0, len(i18n_sett.langs) + 1) | ||||
| context.window_manager.progress_update(0) | context.window_manager.progress_update(0) | ||||
| if not self.use_skip_pot_gen: | if not self.use_skip_pot_gen: | ||||
| env = os.environ.copy() | env = os.environ.copy() | ||||
| env["ASAN_OPTIONS"] = "exitcode=0" | ASAN_OPTIONS = os.environ.get("ASAN_OPTIONS") | ||||
| env["ASAN_OPTIONS"] = "exitcode=0:" + ("" if ASAN_OPTIONS is None else ASAN_OPTIONS) | |||||
mont29: `env["ASAN_OPTIONS"] = "exitcode=0:" + os.environ.get(ASAN_OPTIONS, "")`? | |||||
| # Generate base pot from RNA messages (we use another blender instance here, to be able to perfectly | # 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...)). | # control our environment (factory startup, specific addons enabled/disabled...)). | ||||
| # However, we need to export current user settings about this addon! | # However, we need to export current user settings about this addon! | ||||
| cmmd = ( | cmmd = ( | ||||
| bpy.app.binary_path, | bpy.app.binary_path, | ||||
| "--background", | "--background", | ||||
| "--factory-startup", | "--factory-startup", | ||||
| "--python", | "--python", | ||||
| ▲ Show 20 Lines • Show All 210 Lines • Show Last 20 Lines | |||||
env["ASAN_OPTIONS"] = "exitcode=0:" + os.environ.get(ASAN_OPTIONS, "")?