Skip to content

Commit

Permalink
doc: fix configuration to build on RTD
Browse files Browse the repository at this point in the history
Add module to path.

Mock the C wrapper.

Signed-off-by: Matteo Cafasso <noxdafox@gmail.com>
  • Loading branch information
noxdafox committed Oct 14, 2017
1 parent 8fefa59 commit 5166ffc
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,14 @@
# 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.
#
# import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))
import os
import sys
from unittest.mock import MagicMock

module_dir = os.path.abspath(
os.path.join(os.path.dirname(os.path.realpath(__file__)), os.pardir))
sys.path.insert(0, module_dir)
sys.modules['clips._clips'] = MagicMock()

# -- General configuration ------------------------------------------------

Expand Down

0 comments on commit 5166ffc

Please sign in to comment.