Skip to content
Snippets Groups Projects
Commit 3df7e1b8 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

install _() func in music_track_listener.py BEFORE importing dbus_support which needs it

parent b2c71fb4
No related branches found
No related tags found
No related merge requests found
......@@ -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!"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment