[alacarte] MainWindow: Require a config
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [alacarte] MainWindow: Require a config
- Date: Wed, 23 May 2012 19:00:27 +0000 (UTC)
commit 0edd578f0d794626216d8edb11fd30d03ca4b05a
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue May 1 15:34:56 2012 -0400
MainWindow: Require a config
It's not that hard, jeez.
Alacarte/MainWindow.py | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/Alacarte/MainWindow.py b/Alacarte/MainWindow.py
index d97fd5c..34fb011 100644
--- a/Alacarte/MainWindow.py
+++ b/Alacarte/MainWindow.py
@@ -23,12 +23,11 @@ import gettext
import subprocess
import urllib
import tempfile
-try:
- from Alacarte import config
- gettext.bindtextdomain(config.GETTEXT_PACKAGE,config.localedir)
- gettext.textdomain(config.GETTEXT_PACKAGE)
-except:
- pass
+
+from Alacarte import config
+gettext.bindtextdomain(config.GETTEXT_PACKAGE, config.localedir)
+gettext.textdomain(config.GETTEXT_PACKAGE)
+
_ = gettext.gettext
from Alacarte.MenuEditor import MenuEditor
from Alacarte import util
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]