diff --git a/docs/conf.py b/docs/conf.py index 829ad463698244935f2456ef8bdb2bbb758fbb56..e98e1213e75b81fa86440622c4895c2e6cb2bed3 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -11,12 +11,13 @@ # All configuration values have a default; values that are commented out # serve to show the default. -import sys, os +import os +import sys # 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('..')) # -- General configuration ----------------------------------------------------- @@ -255,10 +256,8 @@ class Mock(object): def __getattr__(cls, name): if name in ("__file__", "__path__"): return "/dev/null" - elif name[0] == name[0].upper(): - mockType = type(name, (), {}) - mockType.__module__ = __name__ - return mockType + elif name in ("__name__",): + return "mocked" else: return Mock()