This commit is contained in:
Евгений Храмов 2023-05-14 17:03:36 +03:00
parent e1ee0871bf
commit add187acb0

@ -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)