better check if main in one place
This commit is contained in:
parent
96930c8ad3
commit
e5ba17617f
1 changed files with 3 additions and 2 deletions
|
@ -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!"
|
||||
|
|
Loading…
Add table
Reference in a new issue