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>2012-07-08 21:10:10 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2012-07-08 21:10:10 +0400
commitdc459c8fea37ea3f86bc1cad2d83dd9ef3f29491 (patch)
tree29b25fa9b96fb1169947035a92984541fef947dc /release/scripts/modules/bl_i18n_utils/update_po.py
parent0c7b56cf39b0b0ac38ad9813a7d43b7098c891fd (diff)
Some cleanup, and update to make those files usable both as self-executables and module stuff...
Also updated update_mo to allwo specifying a custom po/mo file.
Diffstat (limited to 'release/scripts/modules/bl_i18n_utils/update_po.py')
-rwxr-xr-xrelease/scripts/modules/bl_i18n_utils/update_po.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/release/scripts/modules/bl_i18n_utils/update_po.py b/release/scripts/modules/bl_i18n_utils/update_po.py
index c4e980aad2a..d098b50e907 100755
--- a/release/scripts/modules/bl_i18n_utils/update_po.py
+++ b/release/scripts/modules/bl_i18n_utils/update_po.py
@@ -28,8 +28,12 @@ import sys
from codecs import open
import shutil
-import settings
-import utils
+try:
+ import settings
+ import utils
+except:
+ from . import (settings, utils)
+
GETTEXT_MSGMERGE_EXECUTABLE = settings.GETTEXT_MSGMERGE_EXECUTABLE
BRANCHES_DIR = settings.BRANCHES_DIR