From 878ab8dbe6aa9d1d1b9915c290f9fc1c4b08a64c Mon Sep 17 00:00:00 2001 From: xpamych Date: Sun, 14 May 2023 16:52:07 +0300 Subject: [PATCH] 1 --- hlna.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hlna.py b/hlna.py index 11483ed..f7f2db4 100755 --- a/hlna.py +++ b/hlna.py @@ -128,7 +128,7 @@ def unpack(src, dst): raise SignatureUnpackException(msg) #Write the extracted data to disk - with open(f"{dst}/", 'wb') as f: + with open(dst, 'wb') as f: f.write(data) logging.info("Archive has been extracted.") @@ -475,7 +475,7 @@ def modextract(id_mod, id_game_workshop): name, ext = os.path.splitext(file) if ext == ".z": src = os.path.join(curdir, file) - dst = os.path.join(dir_extract, os.path.relpath(os.path.join(dirpath, subdirs[i]), dir_steam_workshop)) + dst = os.path.join(dir_extract, os.path.relpath(os.path.join(dir_steam_workshop, subdirs[i]), file)) uncompressed = os.path.join(curdir, file + ".uncompressed_size") unpack(src, dst) print("[+] Extracted " + file)