为什么狮身人面像不能在这个Travis/Tox版本中找到这个包? [英] Why can't sphinx-apidoc find the package in this travis/tox build?
本文介绍了为什么狮身人面像不能在这个Travis/Tox版本中找到这个包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Travis内部版本:https://travis-ci.com/Laurentiu-Andronache/he/jobs/184044676
conf.py:https://github.com/Laurentiu-Andronache/he/blob/master/docs/source/conf.py
tox.ini:https://github.com/Laurentiu-Andronache/he/blob/master/tox.ini(查看[testenv:doc8])
推荐答案
Sphinx找不到您的Python包并将其导入。相应地调整您的sys.path
:
https://github.com/Laurentiu-Andronache/he/blob/master/docs/source/conf.py#L22
sys.path.insert(0, os.path.join(__location__, '../../src'))
如果该值不起作用,您可能需要将/he
追加到该值。
这篇关于为什么狮身人面像不能在这个Travis/Tox版本中找到这个包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文