diff --git a/hlna.py b/hlna.py index 644762d..8465996 100755 --- a/hlna.py +++ b/hlna.py @@ -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(f"{dirpath}, {subdirs[i]}/"), dir_steam_workshop)) uncompressed = os.path.join(curdir, file + ".uncompressed_size") unpack(src, dst) print("[+] Extracted " + file)