Sphinx / sys.path

Dave Angel d at davea.name
Sat Oct 27 06:33:25 EDT 2012


On 10/27/2012 06:18 AM, mining.facts at googlemail.com wrote:
> Hi,
>
> I figure out how it works with sphinx documentation. But I'm stucked 
> in the sys.path issue? 
>
> sys.path.insert(0, '/home/chris/projekte/dev/testmodule')
>
> /home/chris/projekte/dev/testmodule/doc/source/code.rst:4: WARNING: autodoc can't import/find module 'myproject', it reported error: "No module named useful_1", please check your spelling and sys.path

I have no idea if it's the ONLY problem, but the module below isn't
called useful_1, it's called usefuel1.  Notice there are two differences.

> Thanks in advance
> Christian
>
>
> +-- doc
> |   +-- build
> |   |   +-- doctrees
> |   |   |   +-- code.doctree
> |   |   |   +-- environment.pickle
> |   |   |   +-- index.doctree
> |   |   +-- genindex.html
> |   |   +-- html
> |   |   |   +-- code.html
> |   |   |   +-- genindex.html
> |   |   |   +-- index.html
> |   |   |   +-- objects.inv
> |   |   |   +-- py-modindex.html
> |   |   |   +-- search.html
> |   |   |   +-- searchindex.js
> |   |   |   +-- _sources
> |   |   |   |   +-- code.txt
> |   |   |   |   +-- index.txt
> |   |   |   +-- _static
> |   |   |       +-- ajax-loader.gif
> |   |   |       +-- basic.css
> |   |   |       +-- comment-bright.png
> |   |   |       +-- comment-close.png
> |   |   |       +-- comment.png
> |   |   |       +-- default.css
> |   |   |       +-- doctools.js
> |   |   |       +-- down.png
> |   |   |       +-- down-pressed.png
> |   |   |       +-- file.png
> |   |   |       +-- jquery.js
> |   |   |       +-- minus.png
> |   |   |       +-- plus.png
> |   |   |       +-- pygments.css
> |   |   |       +-- searchtools.js
> |   |   |       +-- sidebar.js
> |   |   |       +-- underscore.js
> |   |   |       +-- up.png
> |   |   |       +-- up-pressed.png
> |   |   |       +-- websupport.js
> |   |   +-- index.html
> |   |   +-- objects.inv
> |   |   +-- search.html
> |   |   +-- searchindex.js
> |   |   +-- _sources
> |   |   |   +-- index.txt
> |   |   +-- _static
> |   |       +-- ajax-loader.gif
> |   |       +-- basic.css
> |   |       +-- comment-bright.png
> |   |       +-- comment-close.png
> |   |       +-- comment.png
> |   |       +-- default.css
> |   |       +-- doctools.js
> |   |       +-- down.png
> |   |       +-- down-pressed.png
> |   |       +-- file.png
> |   |       +-- jquery.js
> |   |       +-- minus.png
> |   |       +-- plus.png
> |   |       +-- pygments.css
> |   |       +-- searchtools.js
> |   |       +-- sidebar.js
> |   |       +-- underscore.js
> |   |       +-- up.png
> |   |       +-- up-pressed.png
> |   |       +-- websupport.js
> |   +-- make.bat
> |   +-- Makefile
> |   +-- source
> |       +-- code.rst
> |       +-- conf.py
> |       +-- index.rst
> |       +-- _static
> |       +-- _templates
> +-- myproject
> |   +-- __init__.py
> |   +-- __init__.pyc
> |   +-- usefuel1.py
> |   +-- usefuel1.pyc
> |   +-- usefuel2.py
> |   +-- usefuel2.pyc
> +-- README
> +-- setup.py
> +-- tests


-- 

DaveA




More information about the Python-list mailing list