#NEWLINE# def get_app_listing( ) : #NEWLINE# #INDENT# 'Get apps listed in `frappe/data/app_listing/`' #NEWLINE# apps_listing_dir = os . path . join ( os . path . dirname ( frappe . __file__ ) , 'data' , 'app_listing' ) #NEWLINE# out = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for app in os . listdir ( apps_listing_dir ) : #NEWLINE# #INDENT# if app . endswith ( '.json' ) : #NEWLINE# #INDENT# with open ( os . path . join ( apps_listing_dir , app ) ) as f : #NEWLINE# #INDENT# out [ app [ : ( - 5 ) ] ] = frappe . _dict ( json . load ( f ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return out