Skip to content

Commit dbda2dc

Browse files
zipfile.py: don't force absolute paths
1 parent ce9354a commit dbda2dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal_filesystem/lib/zipfile.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1961,7 +1961,8 @@ def _extract_member(self, member, targetpath, pwd):
19611961

19621962
# Construct target path
19631963
targetpath = self.path_join(targetpath, arcname)
1964-
targetpath = self.path_normpath(targetpath)
1964+
print(f"zipfile.py: skipping path_normpath because it adds a leading slash, while MicroPython on unix/desktop runs in a subfolder.")
1965+
#targetpath = self.path_normpath(targetpath)
19651966

19661967
# Create all parent directories if necessary
19671968
upperdirs = self.path_dirname(targetpath)

0 commit comments

Comments
 (0)