Fix changelogs rss probably (#23830)

(cherry picked from commit 782a6adf070ef0cc3068ed4da9e471d2d4f7c530)
This commit is contained in:
metalgearsloth 2024-01-10 11:42:26 +11:00 committed by Debug
parent 993e69a85a
commit f70bc1483d
No known key found for this signature in database
GPG Key ID: 271270A74EF9C350
1 changed files with 3 additions and 1 deletions

View File

@ -112,7 +112,9 @@ def main():
)
# Copy in the stylesheet
template_path = pathlib.Path(__file__, 'changelogs', XSL_FILE)
dir_name = os.path.dirname(__file__)
template_path = pathlib.Path(dir_name, 'changelogs', XSL_FILE)
with sftp.open(XSL_FILE, "wb") as f, open(template_path) as fh:
f.write(fh)