diff --git a/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-pygraphviz.py b/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-pygraphviz.py index 92e14eb56..f41f2bb78 100644 --- a/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-pygraphviz.py +++ b/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-pygraphviz.py @@ -49,7 +49,7 @@ else: # The dot binary in PATH is typically a symlink, handle that. # graphviz_bindir is e.g. /usr/local/Cellar/graphviz/2.46.0/bin - graphviz_bindir = os.path.dirname(os.path.realpath(shutil.which("dot"))) + graphviz_bindir = os.path.dirname(shutil.which("dot")) for binary in progs: binaries.append((graphviz_bindir + "/" + binary, ".")) if is_darwin: