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)