install _() func in music_track_listener.py BEFORE importing dbus_support which needs it
This commit is contained in:
parent
b2c71fb427
commit
3df7e1b84f
|
@ -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!"
|
||||
|
|
Loading…
Reference in New Issue