def __init__(self, opts, station): """Initilize the interface opts: a dictionary of command line options station: station requested as an argument""" cleanDebug() self.histfile = None self.config = Config() self.sirius = Sirius() self.player = Player(opts) self.options = opts atexit.register(self.onExit) if opts.list: self.list() sys.exit(0) if opts.setup: self.setup() sys.exit(0) self.notification = toBool(self.config.settings.notifications) if station != None: self.play(station) else: self.repl()