Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (7 sloc) 266 Bytes
"""
Shell environment introspection, e.g. binaries in effective $PATH, etc.
"""
from fabric.api import run, settings, hide
def has_binary(name, runner=run):
with settings(hide('everything'), warn_only=True):
return runner("which %s" % name).succeeded