mirror of https://github.com/scrapy/scrapy.git
another win32 bug fixed in images pipeline (regression tests already covered it)
This commit is contained in:
parent
5c68e2b34b
commit
daf86144c8
|
|
@ -195,7 +195,10 @@ class ImagesPipeline(MediaPipeline):
|
|||
super(ImagesPipeline, self).__init__()
|
||||
|
||||
def _get_store(self, uri):
|
||||
scheme = urlparse.urlparse(uri).scheme
|
||||
if os.path.isabs(uri): # to support win32 paths like: C:\\some\dir
|
||||
scheme = 'file'
|
||||
else:
|
||||
scheme = urlparse.urlparse(uri).scheme
|
||||
store_cls = self.STORE_SCHEMES[scheme]
|
||||
return store_cls(uri)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue