If given an absolute path, use it

fix/44-verbose-arg
Les Aker 2013-11-21 21:02:35 -05:00
parent 287f188340
commit 4dccc94d24
1 changed files with 2 additions and 0 deletions

View File

@ -261,6 +261,8 @@ def _find_binary(binary=None):
"""
found = None
if binary is not None:
if os.path.isabs(binary) and os.path.isfile(binary):
return binary
if not os.path.isabs(binary):
try:
found = _which(binary)