Skip to content

Commit ff34fa3

Browse files
authored
remove debug print; add cwd to git tag subprocess
1 parent a7ef777 commit ff34fa3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

circuitpython_build_tools/scripts/build_bundles.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,9 @@ def build_bundle(libs, bundle_version, output_filename,
7878
print()
7979
print("Generating VERSIONS")
8080
if multiple_libs:
81-
print(os.path.commonpath(libs))
8281
with open(os.path.join(build_dir, build_dir.replace(".zip", ""), "VERSIONS.txt"), "w") as f:
8382
f.write(bundle_version + "\r\n")
84-
versions = subprocess.run('git submodule foreach \"git remote get-url origin && git describe --tags\"', shell=True, stdout=subprocess.PIPE)
83+
versions = subprocess.run('git submodule foreach \"git remote get-url origin && git describe --tags\"', shell=True, stdout=subprocess.PIPE, cwd=os.path.commonpath(libs))
8584
if versions.returncode != 0:
8685
print("Failed to generate versions file. Its likely a library hasn't been "
8786
"released yet.")

0 commit comments

Comments
 (0)