diff options
author | Rémi Flamary <remi.flamary@gmail.com> | 2016-12-02 15:49:09 +0100 |
---|---|---|
committer | Rémi Flamary <remi.flamary@gmail.com> | 2016-12-02 15:49:09 +0100 |
commit | 17315cb08ebf777626dc9aec4bf140cfb5c42503 (patch) | |
tree | 13e41b41365c4529f44310e76799f15b9178f0c3 /docs/source/conf.py | |
parent | ecac4ba865460cbb677520a24fc4d2c34442d45a (diff) |
readthedoc 2
Diffstat (limited to 'docs/source/conf.py')
-rw-r--r-- | docs/source/conf.py | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/docs/source/conf.py b/docs/source/conf.py index d93dff5..e0d4e0b 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -17,23 +17,16 @@ import os import re import sphinx_gallery -#try: +# !!!! allow readthedoc compilation from unittest.mock import MagicMock -#except ImportError: -# from mock import MagicMock - sys.path.insert(0, os.path.abspath("../..")) -#sys.setrecursionlimit(1500) - - - class Mock(MagicMock): @classmethod def __getattr__(cls, name): return Mock() - MOCK_MODULES = [ 'emd','ot.lp.emd'] 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 |