def configure_app(app, config):
 app.config.from_object('flaskbb.configs.default.DefaultConfig')
 if (isinstance(config, string_types) and os.path.exists(os.path.abspath(config))):
  app.config.from_pyfile(os.path.abspath(config))
 else:
  app.config.from_object(config)
 app.config.from_envvar('FLASKBB_SETTINGS', silent=True)

def configure_app ( app , config ) : app . config . from_object ( 'flaskbb.configs.default.DefaultConfig' ) if ( isinstance ( config , string_types ) and os . path . exists ( os . path . abspath ( config ) ) ) : app . config . from_pyfile ( os . path . abspath ( config ) ) else : app . config . from_object ( config ) app . config . from_envvar ( 'FLASKBB_SETTINGS' , silent = True )
different ways of configurations .