From 29c0f58ede8530467bc4a268baec6069ed080414 Mon Sep 17 00:00:00 2001 From: BrettMayson Date: Sat, 9 Mar 2024 06:07:32 -0600 Subject: [PATCH] Update launch.py --- launch.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/launch.py b/launch.py index 3d0b8d9..d440257 100644 --- a/launch.py +++ b/launch.py @@ -38,16 +38,16 @@ def env_defined(key): steamcmd.extend(["validate"]) if env_defined("STEAM_ADDITIONAL_DEPOT"): for depot in os.environ["STEAM_ADDITIONAL_DEPOT"].split("|"): - depot = depot.split(",") + depot_parts = depot.split(",") steamcmd.extend(["+login", os.environ["STEAM_USER"], os.environ["STEAM_PASSWORD"]]) - steamcmd.extend(["+download_depot", "233780", depot[0], depot[1]]) + steamcmd.extend(["+download_depot", "233780", depot_parts[0], depot_parts[1]]) steamcmd.extend(["+quit"]) subprocess.call(steamcmd) if env_defined("STEAM_ADDITIONAL_DEPOT"): for depot in os.environ["STEAM_ADDITIONAL_DEPOT"].split("|"): - depot = depot.split(",") - depot_dir = f"/steamcmd/linux32/steamapps/content/app_233780/depot_{depot[0]}/" + depot_parts = depot.split(",") + depot_dir = f"/steamcmd/linux32/steamapps/content/app_233780/depot_{depot_parts[0]}/" for file in os.listdir(depot_dir): shutil.copytree(depot_dir + file, f"/arma3/", dirs_exist_ok=True) print(f"Moved {file} to /arma3")