Skip to content

Commit b3cb194

Browse files
authored
Merge pull request #20 from sommersoft/examples
Fixed README Placement
2 parents 0813236 + 4b060c0 commit b3cb194

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

circuitpython_build_tools/scripts/build_bundles.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ def build_bundle(libs, bundle_version, output_filename,
108108
build_metadata = {"build-tools-version": build_tools_version}
109109
bundle.comment = json.dumps(build_metadata).encode("utf-8")
110110
if multiple_libs:
111-
total_size += add_file(bundle, "README.txt", "lib/README.txt")
111+
readme_zip_dir = build_dir.replace(".zip", "")
112+
total_size += add_file(bundle, "README.txt", os.path.join(readme_zip_dir.replace("-", "_"), "README.txt"))
112113
for root, dirs, files in os.walk(build_dir):
113114
ziproot = root[len(build_dir + "/"):].replace("-", "_")
114115
for filename in files:

0 commit comments

Comments
 (0)