def setup_conf(self): """ Sets up the configuration, getting it from mainlib. """ conf = mainlib.load_conf(mainlib.guess_conffile(), section="webapp") self.app.config.update(conf)