Skip to content
Snippets Groups Projects
Commit e5ba1761 authored by nkour's avatar nkour
Browse files

better check if main in one place

parent 96930c8a
No related branches found
No related tags found
No related merge requests found
......@@ -14,8 +14,7 @@
## GNU General Public License for more details.
##
import gobject
if __name__ == '__main__':
from common import i18n
import dbus_support
if dbus_support.supported:
import dbus
......@@ -142,6 +141,8 @@ 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