render_template.py 文件源码

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

项目:arthur-redshift-etl 作者: harrystech 项目源码 文件源码
def _find_templates() -> Dict[str, str]:
    """
    Find all templates and return a map from short name to full name
    """
    lookup = OrderedDict()  # type: Dict[str, str]
    templates = pkg_resources.resource_listdir("etl", "templates")
    for filename in sorted(templates):
        name = os.path.splitext(filename)[0]
        lookup[name] = os.path.join("templates", filename)
    return lookup
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号