def get_storage(self): storage = import_string(self.storage['backend']) options = self.storage.get('options', {}) if self.path is not None: options['path'] = self.path return storage(**options)
def get_storage(self): storage = import_string(self.storage) return storage(**self.storage_options)
def get_storage(self): storage = import_string(self.storage["backend"]) options = self.storage.get("options", {}) if self.path is not None: options["path"] = self.path return storage(**options)