#NEWLINE# def get_packages( package ) : #NEWLINE# #INDENT# '\n    Return root package and all sub-packages.\n    ' #NEWLINE# return [ filenames for ( dirpath , dirnames , filenames ) in os . walk ( package ) if os . path . exists ( os . path . join ( dirpath , '__init__.py' ) ) ]