depot/third_party/nixpkgs/pkgs/development/python-modules/pydot/hardcode-graphviz-path.patch
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

13 lines
432 B
Diff

diff --git a/pydot.py b/pydot.py
index 3c7da4d..582c5bc 100644
--- a/pydot.py
+++ b/pydot.py
@@ -124,7 +124,7 @@ def call_graphviz(program, arguments, working_dir, **kwargs):
'LD_LIBRARY_PATH': os.environ.get('LD_LIBRARY_PATH', ''),
}
- program_with_args = [program, ] + arguments
+ program_with_args = ['@graphviz@/bin/' + program, ] + arguments
process = subprocess.Popen(
program_with_args,