ndeploy.py 文件源码

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

项目:ndeploy 作者: sglebs 项目源码 文件源码
def templated_file_contents(options, configfile):
    paths = options["searchpath"].split(",") # CSV of PATHs
    if os.path.isdir(paths[0]):
        loader = FileSystemLoader(paths)
    else:
        loader = URLloader(paths)
    env = Environment(loader=loader)
    contents, config_full_path, _a_lambda_ = loader.get_source(env, configfile)
    template = env.from_string(contents, globals=options)
    return template.render(options)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号