config.py 文件源码

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

项目:autocert 作者: mozilla-it 项目源码 文件源码
def _load_config(cfgs):
    config = {}
    for cfg in cfgs:
        cfg = os.path.expanduser(cfg)
        if os.path.isfile(cfg):
            with open(cfg, 'r') as f:
                yml = yaml.safe_load(f)
                if yml:
                    config.update(yml)
    return AttrDict(config)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号