def __init__(self): self.mainloop = GObject.MainLoop() import loggy loggy.debug_setting = True loggy.sb = self import config self.config = config.config(self) import sbdb self.sbdb = sbdb.sbdb(self) import player self.player = player.player(self) import playlist self.playlist = playlist.playlist(self) import mediakeys self.mediakeys = mediakeys.mediakeys(self) import debug debug.soundblizzard = self import mpdserver self.mpdserver = mpdserver.mpdserver(self) self.mpdserver.startserver('localhost', 6601) #import dbus_mpris #self.dbus_mpris = dbus_mpris.dbus_mpris(self) import gui self.gtkgui = gui.GTKGui(self)
#!/usr/bin/python try: import socket import gobject, loggy, player, sbdb except: loggy.warn('Could not find required libraries: socket gobject loggy player database') import gobject, loggy, player, sbdb, socket, mediakeys, config, mpdserver if __name__ == "__main__": player1 = player.player() player1.db = sbdb.sbdb() player1.mediakeys = mediakeys.mediakeys(player1) mpdserver1 = mpdserver.mpdserver(player1) mpdserver1.startserver('', 6601) player1.load_playlist('ben') gobject.MainLoop().run()