Skip to content

Commit ce7dc58

Browse files
authored
Merge pull request #22 from sommersoft/folder_rename
Rename Folder In Zip
2 parents 5983c59 + 929ebf7 commit ce7dc58

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

circuitpython_build_tools/scripts/build_bundles.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ def build_bundle(libs, bundle_version, output_filename,
109109
bundle.comment = json.dumps(build_metadata).encode("utf-8")
110110
if multiple_libs:
111111
readme_zip_dir = build_dir.replace(".zip", "")
112-
total_size += add_file(bundle, "README.txt", os.path.join(readme_zip_dir.replace("-", "_"), "README.txt"))
112+
total_size += add_file(bundle, "README.txt", os.path.join(readme_zip_dir, "README.txt"))
113113
for root, dirs, files in os.walk(build_dir):
114-
ziproot = root[len(build_dir + "/"):].replace("-", "_")
114+
ziproot = root[len(build_dir + "/"):]
115115
for filename in files:
116116
total_size += add_file(bundle, os.path.join(root, filename),
117117
os.path.join(ziproot, filename.replace("-", "_")))

0 commit comments

Comments
 (0)