Thanks to visit codestin.com Credit goes to github.com
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.
2 parents 558fb80 + a49e973 commit bb167ddCopy full SHA for bb167dd
1 file changed
doc/conf.py
@@ -14,6 +14,7 @@
14
import os
15
import sys
16
import sphinx
17
+import six
18
19
# If your extensions are in another directory, add it here. If the directory
20
# is relative to the documentation root, use os.path.abspath to make it
@@ -73,6 +74,16 @@
73
74
raise ImportError("No module named Image - you need to install "
75
"pillow to build the documentation")
76
77
+if six.PY2:
78
+ from distutils.spawn import find_executable
79
+ has_dot = find_executable('dot') is not None
80
+else:
81
+ from shutil import which # Python >= 3.3
82
+ has_dot = which('dot') is not None
83
+if not has_dot:
84
+ raise OSError(
85
+ "No binary named dot - you need to install the Graph Visualization "
86
+ "software (usually packaged as 'graphviz') to build the documentation")
87
88
try:
89
import matplotlib
0 commit comments