

def get_flask_app(self, module_name):
    'Application getter.'
    if (module_name not in self._registry['flasks']):
        (name, conf) = self._get_options('flasks', module_name)
        flask_app = Flask(name, **conf.get('kwargs', {
            
        }))
        flask_app.config.update({k.upper(): v for (k, v) in conf.get('config', {
            
        }).items()})
        k.flasks.append(flask_app)
        for module in conf['modules']:
            self._registry['flasks'][module] = flask_app
    return self._registry['flasks'][module_name]

dataset/ETHPy150Open mtth/kit/kit/base.py Kit.get_flask_app/VarMisuse@103/139 `self`->`k`