[sphinx-dev] automodule, file in parent folder

2010-05-10 Thread Nico
Hi all, this is the first time that I try to use Sphinx, so this may actually be trivial. I have a module (exactly one file, mymodule.py) in the folder root, and I used sphinx-quickstart to generate the documentation files in root/doc. I'd like to use the docstrings for the documentation, so I

Re: [sphinx-dev] automodule, file in parent folder

2010-05-10 Thread Jan Ulrich Hasecke
Am 09.05.2010 um 01:38 schrieb Nico: .. automodule:: ../mymodule :members: Try .. automodule:: mymodule :members: juh -- You received this message because you are subscribed to the Google Groups sphinx-dev group. To post to this group, send email to sphinx-...@googlegroups.com. To

Re: [sphinx-dev] automodule, file in parent folder

2010-05-10 Thread Nico Schlömer
I get the error /matplotlib2tikz/doc/index.rst:18: (WARNING/2) autodoc can't import/find module 'matplotlib2tikz', it reported error: No module named matplotlib2tikz, please check your spelling and sys.path Is it necessary to put the root folder into $PYTHONPATH? --Nico On Mon, May 10, 2010

Re: [sphinx-dev] automodule, file in parent folder

2010-05-10 Thread DasIch
Autodoc simply imports the module to work with it, so it has to be in the path. You can either define $PYTHONPATH or modify sys.path in the conf.py accordingly. I suppose the latter is the more convenient method. -- You received this message because you are subscribed to the Google Groups

Re: [sphinx-dev] automodule, file in parent folder

2010-05-10 Thread Nico Schlömer
Perfect, that does the trick. Thanks! On Mon, May 10, 2010 at 3:45 PM, DasIch dasdas...@googlemail.com wrote: Autodoc simply imports the module to work with it, so it has to be in the path. You can either define $PYTHONPATH or modify sys.path in the conf.py accordingly. I suppose the latter