From 57386a997c0642b33c1200fa7c5e60eb38bb23c7 Mon Sep 17 00:00:00 2001 From: Tobias Falk Date: Sat, 20 Jul 2024 23:40:09 +0200 Subject: [PATCH] Update wv_harness.py --- src/wireviz/wv_harness.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wireviz/wv_harness.py b/src/wireviz/wv_harness.py index 7dc3fcc..3c9cc82 100644 --- a/src/wireviz/wv_harness.py +++ b/src/wireviz/wv_harness.py @@ -6,7 +6,7 @@ from collections import defaultdict from dataclasses import dataclass, field, asdict from pathlib import Path from typing import List, Union -from distutils.spawn import find_executable +# from distutils.spawn import find_executable from graphviz import Graph @@ -417,7 +417,7 @@ class Harness: def graphRender(self, type, filename, graph): # Chack if the needed commands are existing - if find_executable("dot") and find_executable("gvpr") and find_executable("neato"): + if shutil.which("dot") and shutil.which("gvpr") and shutil.which("neato"): # Set enviorments variable to path of this file os.environ['GVPRPATH'] = str(Path(__file__).parent) # Export the gv output to a temporay file