config_util.py 文件源码

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

项目:indy-common 作者: hyperledger-archives 项目源码 文件源码
def getInstalledConfig(installDir, configFile):
    configPath = os.path.join(installDir, configFile)
    if os.path.exists(configPath):
        spec = spec_from_file_location(configFile, configPath)
        config = module_from_spec(spec)
        spec.loader.exec_module(config)
        return config
    else:
        raise FileNotFoundError("No file found at location {}".
                                format(configPath))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号