提交 fb7b70d3 编写于 作者: Q Qiao Longfei 提交者: GitHub

fix dot (#107)

上级 4489cbd4
......@@ -77,7 +77,7 @@ class Graph(object):
file = open(dot_path, 'w')
file.write(self.__str__())
image_path = dot_path[:-3] + "jpg"
cmd = ["/usr/bin/dot", "-Tjpg", dot_path, "-o", image_path]
cmd = ["dot", "-Tjpg", dot_path, "-o", image_path]
# cmd = "./preview.sh \"%s\"" % cmd
print 'cmd', cmd
# subprocess.call(cmd, shell=True)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册