depot/third_party/nixpkgs/pkgs/development/python-modules/pydot/hardcode-graphviz-path.patch
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

13 lines
454 B
Diff

diff --git a/src/pydot/core.py b/src/pydot/core.py
index 26f526b..78c27f5 100644
--- a/src/pydot/core.py
+++ b/src/pydot/core.py
@@ -209,7 +209,7 @@ def call_graphviz(program, arguments, working_dir, **kwargs):
"SYSTEMROOT": os.environ.get("SYSTEMROOT", ""),
}
- program_with_args = [program] + arguments
+ program_with_args = [f"@graphviz@/bin/{program}"] + arguments
process = subprocess.Popen(
program_with_args,