def _discover(self):
        "Scan directories for possible candidate files"
        files = []
        for d in self.dirs:
            for dirpath, dirnames, filenames in os.walk(d):
                for file in filenames:
                    if file == "__init__.py":
                        continue
                    if fnmatch.fnmatch(file, self.pattern):
                        files.append(os.path.join(dirpath, file))
        return files
def _discover ( self ) : files = [ ] for d in self . dirs : for dirpath , dirnames , filenames in os . walk ( d ) : for file in filenames : if file == "__init__.py" : continue if fnmatch . fnmatch ( file , self . pattern ) : files . append ( os . path . join ( dirpath , file ) ) return files
Scan directories for possible candidate files