diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-01-27 09:46:07 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-01-28 08:50:51 +0300 |
commit | e17c6f79a57513eb1584fa79f698a8f3a85e0d9a (patch) | |
tree | c2d2483ddbdb816760dcf7f2b4a3d52a64abc6b2 /release/scripts/modules/bl_i18n_utils | |
parent | 3e590923485dd0206545654d58202fb073a4469d (diff) |
cleanup: py imports
Diffstat (limited to 'release/scripts/modules/bl_i18n_utils')
-rwxr-xr-x | release/scripts/modules/bl_i18n_utils/merge_po.py | 11 | ||||
-rw-r--r-- | release/scripts/modules/bl_i18n_utils/utils.py | 7 |
2 files changed, 11 insertions, 7 deletions
diff --git a/release/scripts/modules/bl_i18n_utils/merge_po.py b/release/scripts/modules/bl_i18n_utils/merge_po.py index d7dade22ffd..2fda42199bb 100755 --- a/release/scripts/modules/bl_i18n_utils/merge_po.py +++ b/release/scripts/modules/bl_i18n_utils/merge_po.py @@ -30,17 +30,20 @@ import sys -try: +if __package__ is None: import settings import utils -except: - from . import (settings, utils) +else: + from . import ( + settings, + utils, + ) # XXX This is a quick hack to make it work with new I18n... objects! To be reworked! def main(): import argparse - parser = argparse.ArgumentParser(description="" + parser = argparse.ArgumentParser(description= "Merge one or more .po files into the first dest one.\n" "If a msgkey (msgctxt, msgid) is present in more than one merged po, the one in the first file " "wins, unless it’s marked as fuzzy and one later is not.\n" diff --git a/release/scripts/modules/bl_i18n_utils/utils.py b/release/scripts/modules/bl_i18n_utils/utils.py index 911e1764698..524fef909e8 100644 --- a/release/scripts/modules/bl_i18n_utils/utils.py +++ b/release/scripts/modules/bl_i18n_utils/utils.py @@ -31,9 +31,10 @@ import sys import tempfile #import time -from bl_i18n_utils import (settings, - utils_rtl, - ) +from bl_i18n_utils import ( + settings, + utils_rtl, + ) import bpy |