#NEWLINE# def configure_app( app , config = None ) : #NEWLINE# #INDENT# app . config . from_object ( BaseConfig ) #NEWLINE# app . template_folder = BaseConfig . template_folder #NEWLINE# app . static_folder = BaseConfig . static_folder #NEWLINE# if config : #NEWLINE# #INDENT# if isinstance ( config , basestring ) : #NEWLINE# #INDENT# app . config . from_pyfile ( config ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# app . config . from_object ( config ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if os . path . exists ( BaseConfig . AURORA_SETTINGS ) : #NEWLINE# #INDENT# app . config . from_pyfile ( BaseConfig . AURORA_SETTINGS ) #NEWLINE# #UNINDENT# #UNINDENT# app . template_folder = BaseConfig . template_folder #NEWLINE# app . static_folder = BaseConfig . static_folder #NEWLINE# make_dir ( app . config [ 'AURORA_PATH' ] ) #NEWLINE# make_dir ( app . config [ 'AURORA_PROJECTS_PATH' ] ) #NEWLINE# make_dir ( app . config [ 'AURORA_TMP_PATH' ] ) #NEWLINE# make_dir ( app . config [ 'AURORA_TMP_DEPLOYMENTS_PATH' ] ) #NEWLINE# make_dir ( app . config [ 'LOG_FOLDER' ] )