Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Allow passing in absolute path for GraphvizOutput.tool #164

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pycallgraph/output/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down