Skip to content

Commit

Permalink
Update launch.py
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettMayson authored Mar 9, 2024
1 parent 3d5232c commit 1be0c8a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ def env_defined(key):
CONFIG_FILE = os.environ["ARMA_CONFIG"]
KEYS = "/arma3/keys"

if os.environ["CLEAR_KEYS"] == "true" and os.path.isdir(KEYS):
shutil.rmtree(KEYS)
if not os.path.isdir(KEYS):
if os.path.exists(KEYS):
os.remove(KEYS)
os.makedirs(KEYS)
elif os.environ["CLEAR_KEYS"] == "true":
shutil.rmtree(KEYS)


if os.environ["SKIP_INSTALL"] in ["", "false"]:
# Install Arma
Expand Down

0 comments on commit 1be0c8a

Please sign in to comment.