diff --git a/doc/conf.py b/doc/conf.py index c835da8ff01df1ea06cf4e8d28854c05699b60fe..a58e1e426baaeb58340381127abca6e7c01aceed 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -26,6 +26,12 @@ from docutils import nodes from sphinx.util.docfields import TypedField from sphinx import addnodes +# This shouldn't be needed, as using a virtualenv + setup.py should set up the +# sys.path correctly. However that seems to be half broken on ReadTheDocs, so +# manually set it here +sys.path.insert(0, os.path.abspath('../')) + +# Import our packages after modifying sys.path import lisa # This ugly hack is required because by default TestCase.__module__ is @@ -76,11 +82,6 @@ def patched_make_field(self, types, domain, items, env=None): TypedField.make_field = patched_make_field -# This shouldn't be needed, as using a virtualenv + setup.py should set up the -# sys.path correctly. However that seems to be half broken on ReadTheDocs, so -# manually set it here -sys.path.insert(0, os.path.abspath('../')) - # -- General configuration ------------------------------------------------ # If your documentation needs a minimal Sphinx version, state it here.