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