From 18e2562146d7a17785c8d74af76de0b768e62b13 Mon Sep 17 00:00:00 2001 From: MasOnShi Date: Sun, 3 Apr 2022 20:16:16 +0800 Subject: [PATCH] dev commits. --- auto-analysis/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto-analysis/utils.py b/auto-analysis/utils.py index a6027de..56b4f33 100644 --- a/auto-analysis/utils.py +++ b/auto-analysis/utils.py @@ -46,7 +46,7 @@ def extract_file(from_path, to_path): def patch_file(_key, _iv): patch_file_path = os.path.join(BASE_DIR, "../typora.py") - fd = open(patch_file_path, "a") + fd = open(patch_file_path, "a+") content = fd.read() content = content.replace("{AES_KEY}", f"b''.fromhex('{_key}')") content = content.replace("{AES_IV}", f"b''.fromhex('{_iv}')")