dev commits.

This commit is contained in:
MasOnShi
2022-04-03 20:33:02 +08:00
parent d84a6b9041
commit 643c0f3e3c

View File

@@ -50,7 +50,7 @@ def patch_file(_key, _iv, to_dir):
if not os.path.exists(save_dir):
os.makedirs(save_dir)
subprocess.check_call(["cp", f"{exports_path}/*", save_dir])
subprocess.call(["cp", f"{exports_path}/*", save_dir])
patch_file_path = os.path.join(save_dir, "typora.py")
content = open(patch_file_path, "r").read()
content = content.replace("{AES_KEY}", f"b''.fromhex('{_key}')")