summaryrefslogtreecommitdiff
path: root/docs/source/conf.py
diff options
context:
space:
mode:
Diffstat (limited to 'docs/source/conf.py')
-rw-r--r--docs/source/conf.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/docs/source/conf.py b/docs/source/conf.py
index d58f160..42e2b79 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -25,7 +25,8 @@ except ImportError:
## check whether in the source directory...
#
-sys.path.insert(0, os.path.abspath("../.."))
+
+#!!! This should be commented when executing sphinx-gallery
class Mock(MagicMock):
@classmethod
def __getattr__(cls, name):
@@ -37,7 +38,10 @@ 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('.'))
+sys.path.insert(0, os.path.abspath('.'))
+sys.path.insert(0, os.path.abspath('..'))
+sys.path.insert(0, os.path.abspath("../.."))
+
# -- General configuration ------------------------------------------------