diff --git a/hlna.py b/hlna.py index c2b96ba..40d1bfc 100755 --- a/hlna.py +++ b/hlna.py @@ -468,7 +468,7 @@ def modextract(id_mod, id_game_workshop): os.makedirs(os.path.join(dir_extract, os.path.relpath(os.path.join(dirpath, dname), dir_steam_workshop)), exist_ok=True) for fname in filenames: - if not os.path.isfile(os.path.join(dir_steam_workshop, fname)) and not os.path.isfile(os.path.join(mod_steam_workshop, fname + ".z")): + if not os.path.isfile(os.path.join(dir_steam_workshop, fname)) and not os.path.isfile(os.path.join(dir_steam_workshop, fname + ".z")): os.unlink(os.path.join(dir_extract, fname)) for dname in dirnames: