From dbda2dc8db3a80296aee24d1869d8df0caeb2360 Mon Sep 17 00:00:00 2001 From: Thomas Farstrike Date: Fri, 16 May 2025 16:29:05 +0200 Subject: [PATCH] zipfile.py: don't force absolute paths --- internal_filesystem/lib/zipfile.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal_filesystem/lib/zipfile.py b/internal_filesystem/lib/zipfile.py index f9bdbb03..1f411716 100644 --- a/internal_filesystem/lib/zipfile.py +++ b/internal_filesystem/lib/zipfile.py @@ -1961,7 +1961,8 @@ class ZipFile: # Construct target path targetpath = self.path_join(targetpath, arcname) - targetpath = self.path_normpath(targetpath) + print(f"zipfile.py: skipping path_normpath because it adds a leading slash, while MicroPython on unix/desktop runs in a subfolder.") + #targetpath = self.path_normpath(targetpath) # Create all parent directories if necessary upperdirs = self.path_dirname(targetpath)