def add_home_page(bootinfo, docs):
 if (frappe.session.user == u'Guest'):
  return
 home_page = frappe.db.get_default(u'desktop:home_page')
 if (home_page == u'setup-wizard'):
  bootinfo.setup_wizard_requires = frappe.get_hooks(u'setup_wizard_requires')
 try:
  page = frappe.desk.desk_page.get(home_page)
 except (frappe.DoesNotExistError, frappe.PermissionError):
  if frappe.message_log:
   frappe.message_log.pop()
  page = frappe.desk.desk_page.get(u'desktop')
 bootinfo[u'home_page'] = page.name
 docs.append(page)

def add_home_page ( bootinfo , docs ) : if ( frappe . session . user == u'Guest' ) : return home_page = frappe . db . get_default ( u'desktop:home_page' ) if ( home_page == u'setup-wizard' ) : bootinfo . setup_wizard_requires = frappe . get_hooks ( u'setup_wizard_requires' ) try : page = frappe . desk . desk_page . get ( home_page ) except ( frappe . DoesNotExistError , frappe . PermissionError ) : if frappe . message_log : frappe . message_log . pop ( ) page = frappe . desk . desk_page . get ( u'desktop' ) bootinfo [ u'home_page' ] = page . name docs . append ( page )
load home page .