From 782a6adf070ef0cc3068ed4da9e471d2d4f7c530 Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Wed, 10 Jan 2024 11:42:26 +1100 Subject: [PATCH] Fix changelogs rss probably (#23830) --- Tools/actions_changelog_rss.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Tools/actions_changelog_rss.py b/Tools/actions_changelog_rss.py index 6fa6c79153..b95c2fc8e1 100755 --- a/Tools/actions_changelog_rss.py +++ b/Tools/actions_changelog_rss.py @@ -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) -- 2.51.2