From a4aad31b4ea4c922c7cf4b71e6f65d16456268cc Mon Sep 17 00:00:00 2001 From: Escartem Date: Sat, 7 Oct 2023 11:26:57 +0200 Subject: [PATCH] handle tools --- extract.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/extract.py b/extract.py index b4564e5..bcbedb7 100644 --- a/extract.py +++ b/extract.py @@ -15,6 +15,9 @@ spinner = Halo(text="spinner", spinner={'interval': 100, 'frames': ['◜', '◠' def main(): # Extract tools on first launch if not os.path.exists("tools"): + if not os.path.exists("tools.zip"): + print("Please place tools.zip in the project directory and run this program again, you can get the file on the project page") + exit() spinner.text = "Extracting tools for first launch" spinner.start() with zipfile.ZipFile(path("tools.zip"), "r") as zip: