config.py 文件源码

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

项目:sunbeam 作者: eclarke 项目源码 文件源码
def check_config(cfg):
    """Resolve root in config file, then validate paths."""
    if 'root' in cfg['all']:
        root = verify(cfg['all']['root'])
    else:
        root = Path.cwd()
    # Iteratively check paths for each subsection
    new_cfg = dict()
    for section, values in cfg.items():
        new_cfg[section] = validate_paths(values, root)
    return new_cfg
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号