From c6bdb56b6b237794f9ece4c51b0f341e4266fc62 Mon Sep 17 00:00:00 2001 From: BrettMayson Date: Sat, 9 Mar 2024 06:44:01 -0600 Subject: [PATCH] Update launch.py --- launch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/launch.py b/launch.py index 221034c..99d7c4a 100644 --- a/launch.py +++ b/launch.py @@ -19,7 +19,7 @@ def env_defined(key): CONFIG_FILE = os.environ["ARMA_CONFIG"] KEYS = "/arma3/keys" -if os.environ["CLEAR_KEYS"] == "true" and os.path.isdir(KEYS): +if env_defined("CLEAR_KEYS") && os.environ["CLEAR_KEYS"] == "true" and os.path.isdir(KEYS): shutil.rmtree(KEYS) if not os.path.isdir(KEYS): if os.path.exists(KEYS):