def initialize_bootstrapper(bootstrapper=bootstrapper):
    sources = settings.default_bootstrap_sources
    sources += settings.bootstrap_sources

    for source_config in sources:
        if source_config['type'] == 'local':
            source = LocalBootstrapSource(source_config['path'])
        elif source_config['type'] == 'remote':
            source = RemoteBootstrapSource(source_config['url'])
        bootstrapper.add_source(source)
dataset/ETHPy150Open CacheBrowser/cachebrowser/cachebrowser/bootstrap.py/initialize_bootstrapper/original