From 3df7e1b84f326e97b6fe94e8fe5d6dfe24927614 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 27 Sep 2006 17:16:04 +0000 Subject: [PATCH] install _() func in music_track_listener.py BEFORE importing dbus_support which needs it --- src/music_track_listener.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/music_track_listener.py b/src/music_track_listener.py index ee36f4cd0..86931f5dc 100644 --- a/src/music_track_listener.py +++ b/src/music_track_listener.py @@ -14,6 +14,9 @@ ## GNU General Public License for more details. ## import gobject +if __name__ == '__main__': + # install _() func before importing dbus_support + from common import i18n import dbus_support if dbus_support.supported: @@ -141,8 +144,6 @@ class MusicTrackListener(gobject.GObject): # here we test :) if __name__ == '__main__': - from common import i18n - def music_track_change_cb(listener, music_track_info): if music_track_info is None: print "Stop!"