def getDataFiles(dname, ignore=None, parent=None):
 parent = (parent or '.')
 ignore = (ignore or [])
 result = []
 for (directory, subdirectories, filenames) in os.walk(dname):
  resultfiles = []
  for exname in EXCLUDE_NAMES:
   if (exname in subdirectories):
    subdirectories.remove(exname)
  for ig in ignore:
   if (ig in subdirectories):
    subdirectories.remove(ig)
  for filename in _filterNames(filenames):
   resultfiles.append(filename)
  if resultfiles:
   result.append((relativeTo(parent, directory), [relativeTo(parent, os.path.join(directory, filename)) for filename in resultfiles]))
 return result

def getDataFiles ( dname , ignore = None , parent = None ) : parent = ( parent or '.' ) ignore = ( ignore or [ ] ) result = [ ] for ( directory , subdirectories , filenames ) in os . walk ( dname ) : resultfiles = [ ] for exname in EXCLUDE_NAMES : if ( exname in subdirectories ) : subdirectories . remove ( exname ) for ig in ignore : if ( ig in subdirectories ) : subdirectories . remove ( ig ) for filename in _filterNames ( filenames ) : resultfiles . append ( filename ) if resultfiles : result . append ( ( relativeTo ( parent , directory ) , [ relativeTo ( parent , os . path . join ( directory , filename ) ) for filename in resultfiles ] ) ) return result
get all the data files that should be included in this distutils project .