]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix changelogs rss probably (#23830)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Wed, 10 Jan 2024 00:42:26 +0000 (11:42 +1100)
committerGitHub <noreply@github.com>
Wed, 10 Jan 2024 00:42:26 +0000 (01:42 +0100)
Tools/actions_changelog_rss.py

index 6fa6c791531ff31c396170d4cf1dab16e58e7bd6..b95c2fc8e123c4c3f40ebfec5de5848aba57b32a 100755 (executable)
@@ -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)