def find_possible_tools_from_path(path, recursive=False, enable_beta_formats=False):
 possible_tool_files = []
 for possible_tool_file in _find_tool_files(path, recursive=recursive, enable_beta_formats=enable_beta_formats):
  try:
   does_look_like_a_tool = looks_like_a_tool(possible_tool_file, enable_beta_formats=enable_beta_formats)
  except IOError:
   continue
  if does_look_like_a_tool:
   possible_tool_files.append(possible_tool_file)
 return possible_tool_files

def find_possible_tools_from_path ( path , recursive = False , enable_beta_formats = False ) : possible_tool_files = [ ] for possible_tool_file in _find_tool_files ( path , recursive = recursive , enable_beta_formats = enable_beta_formats ) : try : does_look_like_a_tool = looks_like_a_tool ( possible_tool_file , enable_beta_formats = enable_beta_formats ) except IOError : continue if does_look_like_a_tool : possible_tool_files . append ( possible_tool_file ) return possible_tool_files
walk a directory and find potential tool files .