diff --git a/LunaTranslator/LunaTranslator/textsource/texthook.py b/LunaTranslator/LunaTranslator/textsource/texthook.py index 90a02215..3d4a4add 100644 --- a/LunaTranslator/LunaTranslator/textsource/texthook.py +++ b/LunaTranslator/LunaTranslator/textsource/texthook.py @@ -179,6 +179,7 @@ class texthook(basetext): tgt = gobject.getcachedir("update/LunaHook") with zipfile.ZipFile(savep) as zipf: zipf.extractall(tgt) + shutil.rmtree("files/plugins/LunaHook") if os.path.exists(os.path.join(tgt, "Release_English", "LunaHook32.dll")): shutil.move(os.path.join(tgt, "Release_English"), "files/plugins/LunaHook") else: