-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

nickmalcolm schrieb:
> Hi,
> I'm trying to specify a folder for the autodoc extension to scan for
> modules. The file structure is like this
> 
> C:\
>   +Project
>      +Docs
>         - All the Sphinx stuff
>      +src
>         - Modules
> 
> 
> I'm not sure how to use sys.path.append in conf.py to point to this
> src folder. I have tried various combinations like
> sys.path.append('/Project/src')
> sys.path.append('C:/sphinxTest/src')
> 
> etc, but then using .. automodule:: src.autodocTest doesn't work.
> 
> One thing I'm wondering is if I can use sys.path.append(os.path.abspath
> ('.')) and use something to get to a higher level directory (e.g. Up
> out of docs where Sphinx is, then down to source).

Sure.  Use sys.path.append(os.path.abspath('../src'))

I assume that your "src" is not a package, i.e. doesn't contain __init__.py,
so ".. automodule:: src.autodocTest" is not correct.  It should be
".. automodule:: autodocTest", and the sys.path entry should include "src".

cheers,
Georg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.13 (GNU/Linux)

iEYEARECAAYFAkr8Wu8ACgkQN9GcIYhpnLBA1gCfV1i2SzUa2t8aJHUBNCKLzERU
ys4An1XfTJFiWwxuki4iYZT+KyfAA3Rm
=v3vH
-----END PGP SIGNATURE-----

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to sphinx-dev@googlegroups.com
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to