gendoc.py 文件源码

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

项目:redisearch-py 作者: RedisLabs 项目源码 文件源码
def generatedocs(module):
    try:
        sys.path.append(os.getcwd())
        # Attempt import
        mod = pydoc.safeimport(module)
        if mod is None:
           print("Module not found")

        # Module imported correctly, let's create the docs
        return getmarkdown(mod)
    except pydoc.ErrorDuringImport as e:
        print("Error while trying to import " + module)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号