You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
zipfile.py: don't force absolute paths
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user