소스 검색

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: 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 파일 보기

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

불러오는 중...
취소
저장