def get_all_bundle_files(bundle, ctx=None):
 if (not ctx):
  ctx = wrap(bundle.env, bundle)
 if (not isinstance(ctx, ContextWrapper)):
  ctx = ContextWrapper(ctx)
 files = []
 for (_, c) in bundle.resolve_contents(ctx):
  if isinstance(c, Bundle):
   files.extend(get_all_bundle_files(c, wrap(ctx, c)))
  elif (not is_url(c)):
   files.append(c)
  files.extend(bundle.resolve_depends(ctx))
 return files

def get_all_bundle_files ( bundle , ctx = None ) : if ( not ctx ) : ctx = wrap ( bundle . env , bundle ) if ( not isinstance ( ctx , ContextWrapper ) ) : ctx = ContextWrapper ( ctx ) files = [ ] for ( _ , c ) in bundle . resolve_contents ( ctx ) : if isinstance ( c , Bundle ) : files . extend ( get_all_bundle_files ( c , wrap ( ctx , c ) ) ) elif ( not is_url ( c ) ) : files . append ( c ) files . extend ( bundle . resolve_depends ( ctx ) ) return files
return a flattened list of all source files of the given bundle .