From 1e3f46d2adf11701c1047dc61a45b31698d9b7ff Mon Sep 17 00:00:00 2001 From: Ruairidh MacLeod Date: Wed, 8 Jan 2025 17:04:02 +0000 Subject: [PATCH] fix filename bug --- bin/release/updateChangelog.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/release/updateChangelog.py b/bin/release/updateChangelog.py index a66366070..2701b99e7 100755 --- a/bin/release/updateChangelog.py +++ b/bin/release/updateChangelog.py @@ -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