added tmp folder handler

This commit is contained in:
Sven Vogel 2024-05-08 13:55:40 +02:00
parent 94efa65ed0
commit dcda1158f2
1 changed files with 13 additions and 0 deletions

View File

@ -71,6 +71,19 @@ def run_check_print_node():
def run_check_print_graphviz(): def run_check_print_graphviz():
info("started check print graphviz...") info("started check print graphviz...")
info("creating temporary folder...")
if not os.path.exists("tmp"):
os.mkdir("tmp")
info("cleaning temporary folder...")
if os.path.exists("tmp/graph.gv"):
os.remove("tmp/graph.gv")
if os.path.exists("tmp/graph.svg"):
os.remove("tmp/graph.svg")
p = subprocess.run(BIN_DIR + "print_graphviz", capture_output=True, text=True) p = subprocess.run(BIN_DIR + "print_graphviz", capture_output=True, text=True)
info("checking exit code...") info("checking exit code...")