On 2013-07-08, Alexandre Garel wrote:

> [-- Type: text/plain, Encoding:  --]

> I use automodule to document a python module. So in the doc directory I 
> have a file with:

>     .. automodule:: my.package.module

> In the module docstring there is an image directive

>     .. image:: module-schema.png

> Where module-schema.png is in the same directory as structure.py

> When I compile with sphinx, it complains about not finding the 
> module-schema.png file:
> *
>     WARNING: image file not readable: structure-schema.png*

> If I put the module-schema.png in the same directory as the file whiche 
> contains the automodule directive it works.

> I would like the module-schema.png file to be in same folder as its module 
> (as the doc directory is not even in the same project). Is there any way I 
> can do this ?

You can try with a relative (to the directory which contains the automodule
directive) or an absolute path.

There is a Docutils bug report about paths in included files, which may also
be related to your problem:
http://sourceforge.net/p/docutils/bugs/211/

Günter

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to