mirror of https://github.com/scrapy/scrapy.git
httpcache: allow to import submodules within packages as HTTPCACHE_DBM_MODULE setting.
This commit is contained in:
parent
e5edb8ec3e
commit
a2602df90b
|
|
@ -163,7 +163,8 @@ class DbmCacheStorage(object):
|
|||
def __init__(self, settings):
|
||||
self.cachedir = data_path(settings['HTTPCACHE_DIR'], createdir=True)
|
||||
self.expiration_secs = settings.getint('HTTPCACHE_EXPIRATION_SECS')
|
||||
self.dbmodule = __import__(settings['HTTPCACHE_DBM_MODULE'])
|
||||
self.dbmodule = __import__(settings['HTTPCACHE_DBM_MODULE'],
|
||||
{}, {}, [''])
|
||||
self.db = None
|
||||
|
||||
def open_spider(self, spider):
|
||||
|
|
|
|||
Loading…
Reference in New Issue