app.py 文件源码

python
阅读 18 收藏 0 点赞 0 评论 0

项目:ranger-agent 作者: openstack 项目源码 文件源码
def load_app():
    # Build the WSGI app
    cfg_file = None
    cfg_path = cfg.CONF.api_paste_config
    if not os.path.isabs(cfg_path):
        cfg_file = CONF.find_file(cfg_path)
    elif os.path.exists(cfg_path):
        cfg_file = cfg_path

    if not cfg_file:
        raise cfg.ConfigFilesNotFoundError([cfg.CONF.api_paste_config])
    LOG.info("Full WSGI config used: %s" % cfg_file)
    return deploy.loadapp("config:" + cfg_file)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号