Skip to content

Commit

Permalink
fix filename bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rkm committed Jan 8, 2025
1 parent 478d1af commit 1e3f46d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/release/updateChangelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ def main(argv: Sequence[str] | None = None) -> int:
for fragment_file in fragment_files:
with open(fragment_file) as f:
contents = f.read()
pr_ref, _, frag_type = os.path.splitext(fragment_file)[0].partition("-")
split = os.path.splitext(os.path.basename(fragment_file))
pr_ref, _, frag_type = split[0].partition("-")
fragments[frag_type][int(pr_ref)] = contents

# Write-out the new CHANGELOG
Expand Down

0 comments on commit 1e3f46d

Please sign in to comment.