D | file_resources.py | 74 def GetCommandLineFiles(command_line_file_list, recursive, exclude): argument 76 return _FindPythonFiles(command_line_file_list, recursive, exclude) 115 def _FindPythonFiles(filenames, recursive, exclude): argument 117 if exclude and any(e.startswith('./') for e in exclude): 122 if filename != '.' and exclude and IsIgnored(filename, exclude): 129 if dirpath != '.' and exclude and IsIgnored(dirpath, exclude): 136 if exclude and IsIgnored(filepath, exclude): 149 def IsIgnored(path, exclude): argument 154 return any(fnmatch.fnmatch(path, e.rstrip('/')) for e in exclude)
|