template.py 文件源码

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

项目:docs 作者: hasura 项目源码 文件源码
def open_file(self, path):
        """Open a file and register it as a dependency."""
        path = os.path.normpath(path)
        path = utils.relative_path(None, path)
        path = nodes.reprunicode(path)
        self.state.document.settings.record_dependencies.add(path)
        return open(path, 'r')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号