#NEWLINE# def register_app( app_name , app_setting , web_application_setting , mainfile , package_space ) : #NEWLINE# #INDENT# 'insert current project root path into sys path\n    ' #NEWLINE# from turbo import log #NEWLINE# app_config . app_name = app_name #NEWLINE# app_config . app_setting = app_setting #NEWLINE# app_config . project_name = os . path . basename ( get_base_dir ( mainfile , 2 ) ) #NEWLINE# app_config . web_application_setting = web_application_setting #NEWLINE# if app_setting . get ( 'session_config' ) : #NEWLINE# #INDENT# app_config . session_config . update ( app_setting [ 'session_config' ] ) #NEWLINE# #UNINDENT# log . getLogger ( ** app_setting . log ) #NEWLINE# _install_app ( package_space )