python-sphinx Writing docstrings using autodoc Adding your code path in the sphinx config


Example

Autodoc needs to imports your modules to work.

You can include your code path in your conf.py file.

For instance:

import os
sys.path.insert(0, os.path.abspath('../src'))