From add187acb0d7318820f84946997a1d254db10196 Mon Sep 17 00:00:00 2001 From: xpamych Date: Sun, 14 May 2023 17:03:36 +0300 Subject: [PATCH] 1 --- hlna.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hlna.py b/hlna.py index 5b655df..cf7e49c 100755 --- a/hlna.py +++ b/hlna.py @@ -471,11 +471,12 @@ def modextract(id_mod, id_game_workshop): try: for curdir, subdirs, files in os.walk(os.path.join(dir_steam_workshop)): - for i, file in enumerate(files): + for file in files: name, ext = os.path.splitext(file) if ext == ".z": src = os.path.join(curdir, file) - dst = os.path.join(dir_extract, os.path.relpath(subdirs[i], name)) + curdir = dir_extract + dst = os.path.join(curdir, name) uncompressed = os.path.join(curdir, file + ".uncompressed_size") unpack(src, dst) print("[+] Extracted " + file)