Skip to content

Commit

Permalink
Mocked cv2 import for readthedocs
Browse files Browse the repository at this point in the history
  • Loading branch information
assamite committed Aug 3, 2017
1 parent 7acf8fe commit eba610a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ class Mock(MagicMock):
def __getattr__(cls, name):
return MagicMock()

MOCK_MODULES = ['numpy', 'scipy', 'gnureadline', 'asyncssh', 'networkx']
MOCK_MODULES = ['numpy', 'scipy', 'gnureadline', 'asyncssh', 'networkx',
'cv2']
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)

if not on_rtd: # only import and set the theme if we're building docs locally
Expand Down

0 comments on commit eba610a

Please sign in to comment.