Skip to content

Commit

Permalink
docs: Use Mock after path specification
Browse files Browse the repository at this point in the history
  • Loading branch information
tfarago committed Sep 26, 2017
1 parent e04ba94 commit c469e3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ def __getattr__(cls, name):
return MagicMock()

MOCK_MODULES = ['pyfft', 'pyopencl', 'quantities', 'numpy', 'scipy']
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(os.path.join('..', '..')))
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)

from syris import __version__

Expand Down

0 comments on commit c469e3d

Please sign in to comment.