

def create_storage(app):
    '\n    Load specified storage and return the object.\n    '
    if ('STORAGE' not in app.config):
        raise Exception('Missing STORAGE config key')
    storage = importlib.import_module(('.' + app.config['STORAGE']), __name__)
    return storage.create_storage(app)

dataset/ETHPy150Open bepasty/bepasty-server/bepasty/storage/__init__.py create_storage/original