Commit dc8ba6f0 by willmcgugan

Fix for opening absolute paths in a zip file

parent bd4ad0d3
...@@ -126,7 +126,7 @@ class ZipFS(FS): ...@@ -126,7 +126,7 @@ class ZipFS(FS):
@synchronize @synchronize
def open(self, path, mode="r", **kwargs): def open(self, path, mode="r", **kwargs):
path = normpath(path) path = normpath(relpath(path))
self.zip_path = path self.zip_path = path
if 'r' in mode: if 'r' in mode:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment