(self, package, src_dir)
return files
Return filenames for package's data files in 'src_dir
Return filenames for package's data files in 'src_dir
Return filenames for package s data files in src_dir
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.glob(os.path.join(glob.escape(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
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 . glob ( os . path . join ( glob . escape ( 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