parameters: (self, package, src_dir)
return_statement: return files
docstring: Return filenames for package's data files in 'src_dir
docstring_summary: Return filenames for package's data files in 'src_dir
docstring_tokens: Return filenames for package s data files in src_dir
function: def find_data_files(self, package, src_dir):
          """Return filenames for package's data files in 'src_dir'"""
          globs = (self.package_data.get('', [])
                   + self.package_data.get(package, []))
          files = []
          for pattern in globs:
              # Each pattern has to be converted to a platform-specific path
              filelist = glob(os.path.join(src_dir, convert_path(pattern)))
              # Files that match more than one pattern are only added once
              files.extend([fn for fn in filelist if fn not in files
                  and os.path.isfile(fn)])
          return files
function_tokens: def find_data_files ( self , package , src_dir ) : globs = ( self . package_data . get ( '' , [ ] ) + self . package_data . get ( package , [ ] ) ) files = [ ] for pattern in globs : # Each pattern has to be converted to a platform-specific path filelist = glob ( os . path . join ( src_dir , convert_path ( pattern ) ) ) # Files that match more than one pattern are only added once files . extend ( [ fn for fn in filelist if fn not in files and os . path . isfile ( fn ) ] ) return files