예제 #1
0
def setup_config(app: web.Application) -> None:
    app.config = config
예제 #2
0
파일: config.py 프로젝트: AREXP/pure_cv
def get_config(app: web.Application, config_path: str) -> web.Application:
    with open(config_path) as instream:
        config_str = instream.read()

    app.config = json.loads(config_str)