Skip to content

Commit

Permalink
fix dot (PaddlePaddle#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquesqiao authored Jan 13, 2018
1 parent fabc304 commit ed00a7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion visualdl/server/graphviz_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ed00a7a

Please sign in to comment.