From 3f5b271370b9af23062f5049593541819d843108 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Mon, 9 Mar 2009 22:52:39 +0100 Subject: Fix the locale error on setup --- portato/__init__.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'portato/__init__.py') 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 -- cgit v1.2.3