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_pot.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_pot.py')
-rwxr-xr-xrelease/scripts/modules/bl_i18n_utils/update_pot.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/release/scripts/modules/bl_i18n_utils/update_pot.py b/release/scripts/modules/bl_i18n_utils/update_pot.py
index 58c924cade4..ca5d156be9b 100755
--- a/release/scripts/modules/bl_i18n_utils/update_pot.py
+++ b/release/scripts/modules/bl_i18n_utils/update_pot.py
@@ -31,8 +31,11 @@ import argparse
import time
import pickle
-import settings
-import utils
+try:
+ import settings
+ import utils
+except:
+ from . import (settings, utils)
COMMENT_PREFIX = settings.COMMENT_PREFIX