From c0c3f88e623ac7404bed95c13bcc7eb47d01330f Mon Sep 17 00:00:00 2001 From: qiaolongfei Date: Fri, 12 Jan 2018 22:12:49 +0800 Subject: [PATCH] fix dot --- visualdl/server/graphviz_graph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/visualdl/server/graphviz_graph.py b/visualdl/server/graphviz_graph.py index db7760ebb..b653280f1 100644 --- a/visualdl/server/graphviz_graph.py +++ b/visualdl/server/graphviz_graph.py @@ -77,7 +77,7 @@ def display(self, dot_path): 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)