diff --git a/doc/conf.py b/doc/conf.py index 3563433ff9d..0390c443e15 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -6,11 +6,11 @@ import sphinx # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. DIR = os.path.dirname(__file__) -sys.path.append( +sys.path.insert(0, os.path.abspath( os.path.join(DIR, '_extensions'))) -# autodoc -sys.path.append(os.path.abspath(os.path.join(DIR, '..'))) +# put current odoo's source on PYTHONPATH for autodoc +sys.path.insert(0, os.path.abspath(os.path.join(DIR, '..'))) # -- General configuration -----------------------------------------------------