From df5e89926a25122b88220b600a770418e0bcde04 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Thu, 30 Apr 2020 09:05:30 -0400 Subject: [PATCH] Make the scripts write to the exact path they're given --- changelog.py | 2 +- commits.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/changelog.py b/changelog.py index f5b08bf..337a472 100644 --- a/changelog.py +++ b/changelog.py @@ -21,5 +21,5 @@ result = {} for release in data: result[release["name"]] = release["body"] -with open(os.path.join(sys.argv[2], "changelog.json"), "w", encoding="utf-8") as file: +with open(sys.argv[2], "w", encoding="utf-8") as file: json.dump(result, file) diff --git a/commits.py b/commits.py index e4793cd..ced0ca5 100644 --- a/commits.py +++ b/commits.py @@ -41,5 +41,5 @@ for commit in data: result["body"] = body results.append(result) -with open(os.path.join(sys.argv[2], "commits.json"), "w", encoding="utf-8") as file: +with open(sys.argv[2], "w", encoding="utf-8") as file: json.dump(results[::-1], file)