浏览代码

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

master
Fen Dweller 5 年前
父节点
当前提交
df5e89926a
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. +1
    -1
      changelog.py
  2. +1
    -1
      commits.py

+ 1
- 1
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)

+ 1
- 1
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)

正在加载...
取消
保存