#NEWLINE# def expand_star( mod_name ) : #NEWLINE# #INDENT# "Expand something like 'unuk.tasks.*' into a list of all the modules\n    there.\n    " #NEWLINE# expanded = [ ] #NEWLINE# mod_dir = os . path . dirname ( __import__ ( mod_name [ : ( - 2 ) ] , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , [ '' ] ) . __file__ ) #NEWLINE# for f in glob . glob1 ( mod_dir , '[!_]*.py' ) : #NEWLINE# #INDENT# expanded . append ( ( '%s.%s' % ( mod_name [ : ( - 2 ) ] , f [ : ( - 3 ) ] ) ) ) #NEWLINE# #UNINDENT# return expanded