wsgi.py 文件源码

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

项目:masakari 作者: openstack 项目源码 文件源码
def __init__(self, config_path=None):
        """Initialize the loader, and attempt to find the config.

        :param config_path: Full or relative path to the paste config.
        :returns: None

        """
        self.config_path = None

        config_path = config_path or CONF.wsgi.api_paste_config
        if not os.path.isabs(config_path):
            self.config_path = CONF.find_file(config_path)
        elif os.path.exists(config_path):
            self.config_path = config_path

        if not self.config_path:
            raise exception.ConfigNotFound(path=config_path)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号