(fnames)
return [f for f in fnames
          if not any(e for e in exclude_paths
                  if _IsParentOrSame(e, os.path.abspath(f)))]
Filters out files listed in the --exclude command line switch. File paths
  in the switch are evaluated relative to the current working directory
Filters out files listed in the --exclude command line switch. File paths
  in the switch are evaluated relative to the current working directory
Filters out files listed in the -- exclude command line switch . File paths in the switch are evaluated relative to the current working directory
def _FilterExcludedFiles(fnames):
  """Filters out files listed in the --exclude command line switch. File paths
  in the switch are evaluated relative to the current working directory
  """
  exclude_paths = [os.path.abspath(f) for f in _excludes]
  # because globbing does not work recursively, exclude all subpath of all excluded entries
  return [f for f in fnames
          if not any(e for e in exclude_paths
                  if _IsParentOrSame(e, os.path.abspath(f)))]
def _FilterExcludedFiles ( fnames ) : exclude_paths = [ os . path . abspath ( f ) for f in _excludes ] # because globbing does not work recursively, exclude all subpath of all excluded entries return [ f for f in fnames if not any ( e for e in exclude_paths if _IsParentOrSame ( e , os . path . abspath ( f ) ) ) ]