Update launcher.py

This commit is contained in:
McCloudS
2024-02-11 08:48:08 -07:00
committed by GitHub
parent f373bf53a2
commit fcfc88704c

View File

@@ -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: