def _FilterExcludedFiles(filenames):
 exclude_paths = [os.path.abspath(f) for f in _excludes]
 return [f for f in filenames if (os.path.abspath(f) not in exclude_paths)]

def _FilterExcludedFiles ( filenames ) : exclude_paths = [ os . path . abspath ( f ) for f in _excludes ] return [ f for f in filenames if ( os . path . abspath ( f ) not in exclude_paths ) ]
filters out files listed in the --exclude command line switch .