Skip to content

Commit

Permalink
Update wv_harness.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasfalk committed Jul 20, 2024
1 parent 4546413 commit 57386a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wireviz/wv_harness.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
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

Expand Down Expand Up @@ -417,7 +417,7 @@ def svg(self):

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
Expand Down

0 comments on commit 57386a9

Please sign in to comment.