From d50956784820b9922d863cfd2fb64946a61670b7 Mon Sep 17 00:00:00 2001 From: Faraphel Date: Sun, 3 Jul 2022 23:27:40 +0200 Subject: [PATCH] match type operation where not copied to the correct path --- source/mkw/Patch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/mkw/Patch.py b/source/mkw/Patch.py index 84f21a1..2a01699 100644 --- a/source/mkw/Patch.py +++ b/source/mkw/Patch.py @@ -403,8 +403,8 @@ class PatchFile(PatchObject): # patch the game with the subpatch print(f"[match] copying {self} to {game_subfile}") - game_subpath.parent.mkdir(parents=True, exist_ok=True) - with open(game_subfile.parent / patch_name, "wb") as file: + game_subfile.parent.mkdir(parents=True, exist_ok=True) + with open(game_subfile, "wb") as file: file.write(patch_content.read()) # else raise an error