diff options
Diffstat (limited to 'portato')
-rw-r--r-- | portato/__init__.py | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/portato/__init__.py b/portato/__init__.py index fb2ed9f..63fd494 100644 --- a/portato/__init__.py +++ b/portato/__init__.py @@ -12,16 +12,17 @@ from __future__ import absolute_import -from . import log -import gettext, locale -from portato.constants import LOCALE_DIR, APP +def start(): + from . import log + import gettext, locale + from portato.constants import LOCALE_DIR, APP -# set gettext stuff -locale.setlocale(locale.LC_ALL, '') -gettext.install(APP, LOCALE_DIR, unicode = True) + # set gettext stuff + locale.setlocale(locale.LC_ALL, '') + gettext.install(APP, LOCALE_DIR, unicode = True) -# start logging -log.start(file=False) + # start logging + log.start(file=False) # listener-handling __listener = None |