nixpkgs-suyu/pkgs/development/python-modules/pygraphviz/graphviz-path.patch

13 lines
389 B
Diff

diff --git a/pygraphviz/agraph.py b/pygraphviz/agraph.py
index 8f72024..2d8358e 100644
--- a/pygraphviz/agraph.py
+++ b/pygraphviz/agraph.py
@@ -1557,7 +1557,7 @@ class AGraph(object):
import os
import glob
- paths = os.environ["PATH"]
+ paths = '@graphviz@/bin:' + os.environ["PATH"]
if os.name == "nt":
exe = ".exe"
else: