mirror of
https://github.com/LCPQ/quantum_package
synced 2025-01-09 12:44:07 +01:00
Fix graphiz
This commit is contained in:
parent
e4d2eda17f
commit
97df8d1922
@ -180,13 +180,7 @@ class ModuleHandler():
|
||||
basename = "tree_dependency"
|
||||
path = '{0}.png'.format(basename)
|
||||
|
||||
# Init
|
||||
try:
|
||||
from graphviz import Digraph
|
||||
except:
|
||||
with open(path, 'a'):
|
||||
os.utime(path, None)
|
||||
return
|
||||
from graphviz import Digraph
|
||||
|
||||
all_ready_done = []
|
||||
|
||||
@ -209,7 +203,12 @@ class ModuleHandler():
|
||||
graph.node(module, fontcolor="red")
|
||||
draw_module_edge(module, d_ref[module])
|
||||
|
||||
graph.render(cleanup=True)
|
||||
try:
|
||||
graph.render(cleanup=True)
|
||||
except:
|
||||
with open(path, 'a'):
|
||||
os.utime(path, None)
|
||||
return
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
Loading…
Reference in New Issue
Block a user