Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #32272

Re: Sphinx / sys.path

Date 2012-10-27 06:33 -0400
From Dave Angel <d@davea.name>
Subject Re: Sphinx / sys.path
References <15bad12d-5806-48f8-89dd-47e9df3de9e8@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.2932.1351334032.27098.python-list@python.org> (permalink)

Show all headers | View raw


On 10/27/2012 06:18 AM, mining.facts@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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Sphinx / sys.path mining.facts@googlemail.com - 2012-10-27 03:18 -0700
  Re: Sphinx / sys.path mining.facts@googlemail.com - 2012-10-27 03:33 -0700
  Re: Sphinx / sys.path Dave Angel <d@davea.name> - 2012-10-27 06:33 -0400
  Re: Sphinx / sys.path mining.facts@googlemail.com - 2012-10-27 07:02 -0700

csiph-web