提交 7d544691 authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Check the graphviz executable are there.

Even if the pydot Python package is installed, it is not certain that the graphviz executable are (that is the case with EPD for instance). In that case, we do not want to use it.
上级 818bdf4b
......@@ -13,7 +13,10 @@ import numpy
try:
import pydot as pd
pydot_imported = True
if pd.find_graphviz():
pydot_imported = True
else:
pydot_imported = False
except ImportError:
pydot_imported = False
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论