We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecac4ba commit 17315cbCopy full SHA for 17315cb
docs/source/conf.py
@@ -17,23 +17,16 @@
17
import re
18
import sphinx_gallery
19
20
-#try:
+# !!!! allow readthedoc compilation
21
from unittest.mock import MagicMock
22
-#except ImportError:
23
-# from mock import MagicMock
24
-
25
sys.path.insert(0, os.path.abspath("../.."))
26
-#sys.setrecursionlimit(1500)
27
28
29
30
class Mock(MagicMock):
31
@classmethod
32
def __getattr__(cls, name):
33
return Mock()
34
35
MOCK_MODULES = [ 'emd','ot.lp.emd']
36
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
+# !!!!
37
38
# If extensions (or modules to document with autodoc) are in another directory,
39
# add these directories to sys.path here. If the directory is relative to the
0 commit comments