简体   繁体   中英

Why can't sphinx-apidoc find the package in this travis/tox build?

Travis build: 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 (check out [testenv:doc8])

Sphinx cannot find your Python package and import it. Adjust your sys.path accordingly:

https://github.com/Laurentiu-Andronache/he/blob/master/docs/source/conf.py#L22

sys.path.insert(0, os.path.join(__location__, '../../src'))

You might need to append /he to that value if it does not work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM