#NEWLINE# def get_package_data( package ) : #NEWLINE# #INDENT# '\n    Return all files under the root package, that are not in a\n    package themselves.\n    ' #NEWLINE# walk = [ ( dirpath . replace ( ( package + os . sep ) , '' , 1 ) , filenames ) for ( dirpath , dirnames , filenames ) in os . walk ( package ) if ( not os . path . exists ( os . path . join ( dirpath , '__init__.py' ) ) ) ] #NEWLINE# filepaths = [ ] #NEWLINE# for ( base , filenames ) in walk : #NEWLINE# #INDENT# filepaths . extend ( [ os . path . join ( base , filename ) for filename in filenames ] ) #NEWLINE# #UNINDENT# return { #NEWLINE# #INDENT# package : filepaths , #NEWLINE# #UNINDENT# }