From 04a13b5a155320d9486dead42fb89a76eeb1dd81 Mon Sep 17 00:00:00 2001 From: Andrew Leech Date: Wed, 19 Oct 2016 17:47:55 +1100 Subject: [PATCH] Allow passing in absolute path for GraphvizOutput.tool --- pycallgraph/output/output.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pycallgraph/output/output.py b/pycallgraph/output/output.py index 662d563..57de41d 100644 --- a/pycallgraph/output/output.py +++ b/pycallgraph/output/output.py @@ -90,6 +90,9 @@ def done(self): raise NotImplementedError('done') def ensure_binary(self, cmd): + if os.path.isfile(cmd) and os.access(cmd, os.X_OK): + return + if find_executable(cmd): return