Dziękuję za wiadomość 2012/7/7, Bérenger Enselme <[email protected]>: > Hi, > > I'm trying to build docs for a flask extension... Directory structure is > like this: > D: > |-prog > | | - flask-makotemplates > | | | - docs > | | | - flaskext > | | | |- makotemplates.py > > So I have edited conf.py and added > sys.path.insert(0, os.path.abspath('..')) > > I have checked that "D:\prog\flask-makotemplates" is in the sys.path, and > it is there. > > My index.rst is simply: > .. automodule:: flaskext.makotemplates > > Now, when running make html I get: > Making output directory... > Running Sphinx v1.1.3 > loading pickled environment... not yet created > building [html]: targets for 1 source files that are out of date > updating environment: 1 added, 0 changed, 0 removed > reading sources... [100%] index > Traceback (most recent call last): > File > "c:\python26\lib\site-packages\sphinx-1.1.3-py2.6.egg\sphinx\ext\autodoc. > py", line 321, in import_object > __import__(self.modname) > ImportError: No module named makotemplates > > I have tried running the same import with the same sys.path directly in the > > python interpreter and it works. It also works if I put makotemplates.py in > > sites-packages/flaskext > > What am I doing wrong ? > > Thanks, > Béranger > > -- > You received this message because you are subscribed to the Google Groups > "sphinx-dev" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/sphinx-dev/-/SlTu3DCbhPcJ. > 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. > >
-- 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.
