You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
17 lines
685 B
Diff
17 lines
685 B
Diff
diff --git a/freezefs/archive.py b/freezefs/archive.py
|
|
index 843090d..26e2029 100644
|
|
--- a/freezefs/archive.py
|
|
+++ b/freezefs/archive.py
|
|
@@ -87,8 +87,9 @@ def to_python( pc_infolder, pc_outfile,
|
|
|
|
# Get files
|
|
files = []
|
|
- for path in glob( "**", root_dir=pc_infolder, recursive=True ):
|
|
- fo = FileObject( pc_infolder, Path( path ), request_compression, level, wbits )
|
|
+ for path in glob(os.path.join(pc_infolder, "**"), recursive=True):
|
|
+ rel_path = os.path.relpath(path, pc_infolder)
|
|
+ fo = FileObject(pc_infolder, Path(rel_path), request_compression, level, wbits)
|
|
files.append( fo )
|
|
|
|
# Generate output
|