Can anyone tell if this is at all possible to use subpackages with
autodoc?

Regards,
Vincent

On Jul 7, 10:43 am, Vincent <[email protected]> wrote:
> In my python project I use subpackages with modules. Currently I have
> a package called rijnh, which contains a package called platform which
> contains a module named system. I have created the following
> directive:
>
> The :mod:`rijnh.platform.system` Module
> ------------------------
>
> .. automodule:: rijnh.platform.system
>     :members:
>     :undoc-members:
>     :show-inheritance:
>
> (actually I've used the 'generate modules.py' file, but I've also
> tried it by hand). However in the build process I've got the following
> error:
>
> H:\workspace\rijnh\doc\source\rijnh.platform.txt:9: (WARNING/2)
> autodoc can't im
> port/find module 'rijnh.platform.system', it reported error: "No
> module named pl
> atform.system", please check your spelling and sys.path
>
> I've added the source path to sys.path, I have even added src/rijnh
> and src/rijnh/platform to the path, but no success. The path however
> is correct. If I create a simple test module in the source directory
> (no packages), it has no trouble documenting it.
>
> So, does autodoc support subpackages? I've seen examples of that it
> should, but I can't get it to work.
>
> Regards,
> Vincent

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.

Reply via email to