diff --git a/doc/conf.py b/doc/conf.py index 52d32f2b9..0a7302dc2 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -29,7 +29,8 @@ sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES) # If extensions (or modules to document with autodoc) are in another directory, # 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. -sys.path.insert(0, os.path.abspath('../wrapper/')) +curr_path = os.path.dirname(os.path.abspath(os.path.expanduser(__file__))) +sys.path.insert(0, os.path.join(curr_path, '../wrapper/')) # -- General configuration ------------------------------------------------