Skip to content

Commit

Permalink
Merge pull request #22 from sommersoft/folder_rename
Browse files Browse the repository at this point in the history
Rename Folder In Zip
  • Loading branch information
kattni authored Nov 10, 2018
2 parents 5983c59 + 929ebf7 commit ce7dc58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions circuitpython_build_tools/scripts/build_bundles.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ def build_bundle(libs, bundle_version, output_filename,
bundle.comment = json.dumps(build_metadata).encode("utf-8")
if multiple_libs:
readme_zip_dir = build_dir.replace(".zip", "")
total_size += add_file(bundle, "README.txt", os.path.join(readme_zip_dir.replace("-", "_"), "README.txt"))
total_size += add_file(bundle, "README.txt", os.path.join(readme_zip_dir, "README.txt"))
for root, dirs, files in os.walk(build_dir):
ziproot = root[len(build_dir + "/"):].replace("-", "_")
ziproot = root[len(build_dir + "/"):]
for filename in files:
total_size += add_file(bundle, os.path.join(root, filename),
os.path.join(ziproot, filename.replace("-", "_")))
Expand Down

0 comments on commit ce7dc58

Please sign in to comment.