From fcfc88704c0ce53414b8334bd641d5510dc02a45 Mon Sep 17 00:00:00 2001 From: McCloudS <64094529+McCloudS@users.noreply.github.com> Date: Sun, 11 Feb 2024 08:48:08 -0700 Subject: [PATCH] Update launcher.py --- launcher.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/launcher.py b/launcher.py index f4f25cf..bba8597 100644 --- a/launcher.py +++ b/launcher.py @@ -24,7 +24,10 @@ def main(): # Check if the environment variable is set github_download_enabled = convert_to_bool(os.getenv("UPDATE", False)) - if github_download_enabled: + if not os.path.exists(output_file): + print(f"File {output_file} does not exist. Downloading from GitHub...") + download_from_github(github_url, output_file) + elif github_download_enabled: print("Downloading subgen.py from GitHub...") download_from_github(github_url, output_file) else: