(binary_name)
Finds the path of a binary.
Finds the path of a binary.
Finds the path of a binary .
def find_binary(binary_name):
  """Finds the path of a binary."""

  try:
    return subprocess.check_output(['which', binary_name]).strip()
  except subprocess.CalledProcessError:
    raise Exception(
        'No "' + binary_name + '" on PATH, please install or fix PATH.')
def find_binary ( binary_name ) : try : return subprocess . check_output ( [ 'which' , binary_name ] ) . strip ( ) except subprocess . CalledProcessError : raise Exception ( 'No "' + binary_name + '" on PATH, please install or fix PATH.' )