def initialize_dbs(settings):
 global _MAIN_SETTINGS, _MAIN_SITEURL, _MAIN_LANG, _SUBSITE_QUEUE
 _MAIN_SETTINGS = settings
 _MAIN_LANG = settings['DEFAULT_LANG']
 _MAIN_SITEURL = settings['SITEURL']
 _SUBSITE_QUEUE = settings.get('I18N_SUBSITES', {}).copy()
 prepare_site_db_and_overrides()
 _SITES_RELPATH_DB.clear()
 _NATIVE_CONTENT_URL_DB.clear()
 _GENERATOR_DB.clear()

def initialize_dbs ( settings ) : global _MAIN_SETTINGS , _MAIN_SITEURL , _MAIN_LANG , _SUBSITE_QUEUE _MAIN_SETTINGS = settings _MAIN_LANG = settings [ 'DEFAULT_LANG' ] _MAIN_SITEURL = settings [ 'SITEURL' ] _SUBSITE_QUEUE = settings . get ( 'I18N_SUBSITES' , { } ) . copy ( ) prepare_site_db_and_overrides ( ) _SITES_RELPATH_DB . clear ( ) _NATIVE_CONTENT_URL_DB . clear ( ) _GENERATOR_DB . clear ( )
initialize internal dbs using the pelican settings dict this clears the dbs for e .