def _MergeBuiltinsIncludes(appinfo_path, appyaml, open_fn=open):
 if (not appyaml.builtins):
  appyaml.builtins = [appinfo.BuiltinHandler(default='on')]
 elif (not appinfo.BuiltinHandler.IsDefined(appyaml.builtins, 'default')):
  appyaml.builtins.append(appinfo.BuiltinHandler(default='on'))
 (aggregate_appinclude, include_paths) = _ResolveIncludes(appinfo_path, appinfo.AppInclude(builtins=appyaml.builtins, includes=appyaml.includes), os.path.dirname(appinfo_path), appyaml.runtime, open_fn=open_fn)
 return (appinfo.AppInclude.MergeAppYamlAppInclude(appyaml, aggregate_appinclude), include_paths)

def _MergeBuiltinsIncludes ( appinfo_path , appyaml , open_fn = open ) : if ( not appyaml . builtins ) : appyaml . builtins = [ appinfo . BuiltinHandler ( default = 'on' ) ] elif ( not appinfo . BuiltinHandler . IsDefined ( appyaml . builtins , 'default' ) ) : appyaml . builtins . append ( appinfo . BuiltinHandler ( default = 'on' ) ) ( aggregate_appinclude , include_paths ) = _ResolveIncludes ( appinfo_path , appinfo . AppInclude ( builtins = appyaml . builtins , includes = appyaml . includes ) , os . path . dirname ( appinfo_path ) , appyaml . runtime , open_fn = open_fn ) return ( appinfo . AppInclude . MergeAppYamlAppInclude ( appyaml , aggregate_appinclude ) , include_paths )
merges app .