def get_configuration(self): """ Gets settings for a session.""" file_ = "%s/session.conf" % (self.session_id,) # try: log.debug("Creating config file %s" % (file_,)) self.settings = Configuration(paths.config_path(file_), paths.app_path("session.defaults")) self.soundplayer = sound.soundSystem(self.settings["sound"])
def init_sound(self): try: self.sound = sound.soundSystem(self.settings["sound"]) except: pass