Skip to content

Commit 17315cb

Browse files
committed
readthedoc 2
1 parent ecac4ba commit 17315cb

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

docs/source/conf.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,16 @@
1717
import re
1818
import sphinx_gallery
1919

20-
#try:
20+
# !!!! allow readthedoc compilation
2121
from unittest.mock import MagicMock
22-
#except ImportError:
23-
# from mock import MagicMock
24-
2522
sys.path.insert(0, os.path.abspath("../.."))
26-
#sys.setrecursionlimit(1500)
27-
28-
29-
3023
class Mock(MagicMock):
3124
@classmethod
3225
def __getattr__(cls, name):
3326
return Mock()
34-
3527
MOCK_MODULES = [ 'emd','ot.lp.emd']
3628
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
29+
# !!!!
3730

3831
# If extensions (or modules to document with autodoc) are in another directory,
3932
# add these directories to sys.path here. If the directory is relative to the

0 commit comments

Comments
 (0)