def get_path(whereis_output):
  """Returns the full path of a command from the output of a whereis command."""
  if len(whereis_output) == 1:
    data = whereis_output[0]
  else:
    data = whereis_output[1]

  more_data = data.split()
  if len(more_data) < 2:
    return ""
  else:
    return more_data[1]