def _FindYaml(self, basepath, file_name):
    if not os.path.isdir(basepath):
      self.parser.error('Not a directory: %s' % basepath)

    for yaml_file in (file_name + '.yaml', file_name + '.yml'):
      yaml_path = os.path.join(basepath, yaml_file)
      if os.path.isfile(yaml_path):
        return yaml_path

    return None
Find yaml files in application directory.
dataset/ETHPy150Open CollabQ/CollabQ/.google_appengine/google/appengine/tools/appcfg.py/AppCfgApp._FindYaml