Browse Source

Make the scripts write to the exact path they're given

master
Fen Dweller 5 years ago
parent
commit
df5e89926a
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      changelog.py
  2. +1
    -1
      commits.py

+ 1
- 1
changelog.py View File

@@ -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)

+ 1
- 1
commits.py View File

@@ -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)

Loading…
Cancel
Save