Quellcode durchsuchen

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

master
Fen Dweller vor 5 Jahren
Ursprung
Commit
df5e89926a
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. +1
    -1
      changelog.py
  2. +1
    -1
      commits.py

+ 1
- 1
changelog.py Datei anzeigen

@@ -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 Datei anzeigen

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

Laden…
Abbrechen
Speichern