Pārlūkot izejas kodu

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

master
Fen Dweller pirms 5 gadiem
vecāks
revīzija
df5e89926a
2 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +1
    -1
      changelog.py
  2. +1
    -1
      commits.py

+ 1
- 1
changelog.py Parādīt failu

@@ -21,5 +21,5 @@ result = {}
for release in data: for release in data:
result[release["name"]] = release["body"] 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) json.dump(result, file)

+ 1
- 1
commits.py Parādīt failu

@@ -41,5 +41,5 @@ for commit in data:
result["body"] = body result["body"] = body
results.append(result) 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) json.dump(results[::-1], file)

Notiek ielāde…
Atcelt
Saglabāt