def get_all_apps(with_internal_apps=True, sites_path=None):
 if (not sites_path):
  sites_path = local.sites_path
 apps = get_file_items(os.path.join(sites_path, u'apps.txt'), raise_not_found=True)
 if with_internal_apps:
  for app in get_file_items(os.path.join(local.site_path, u'apps.txt')):
   if (app not in apps):
    apps.append(app)
 if (u'frappe' in apps):
  apps.remove(u'frappe')
 apps.insert(0, u'frappe')
 return apps

def get_all_apps ( with_internal_apps = True , sites_path = None ) : if ( not sites_path ) : sites_path = local . sites_path apps = get_file_items ( os . path . join ( sites_path , u'apps.txt' ) , raise_not_found = True ) if with_internal_apps : for app in get_file_items ( os . path . join ( local . site_path , u'apps.txt' ) ) : if ( app not in apps ) : apps . append ( app ) if ( u'frappe' in apps ) : apps . remove ( u'frappe' ) apps . insert ( 0 , u'frappe' ) return apps
get list of all apps via sites/apps .