mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2025-01-01 10:04:12 +08:00
fix
This commit is contained in:
parent
739fa24944
commit
cbc45f8a7d
@ -179,6 +179,7 @@ class texthook(basetext):
|
|||||||
tgt = gobject.getcachedir("update/LunaHook")
|
tgt = gobject.getcachedir("update/LunaHook")
|
||||||
with zipfile.ZipFile(savep) as zipf:
|
with zipfile.ZipFile(savep) as zipf:
|
||||||
zipf.extractall(tgt)
|
zipf.extractall(tgt)
|
||||||
|
shutil.rmtree("files/plugins/LunaHook")
|
||||||
if os.path.exists(os.path.join(tgt, "Release_English", "LunaHook32.dll")):
|
if os.path.exists(os.path.join(tgt, "Release_English", "LunaHook32.dll")):
|
||||||
shutil.move(os.path.join(tgt, "Release_English"), "files/plugins/LunaHook")
|
shutil.move(os.path.join(tgt, "Release_English"), "files/plugins/LunaHook")
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user