From d8cdfa2adf903c62b210c1a4cd9ebf8d6ce2f0a8 Mon Sep 17 00:00:00 2001 From: Escartem Date: Wed, 11 Oct 2023 17:54:25 +0200 Subject: [PATCH] don't check zip anymore --- extract.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/extract.py b/extract.py index bcbedb7..990cd50 100644 --- a/extract.py +++ b/extract.py @@ -13,18 +13,6 @@ call = lambda args: subprocess.call(args, stdout=subprocess.DEVNULL, stderr=subp spinner = Halo(text="spinner", spinner={'interval': 100, 'frames': ['◜', '◠', '◝', '◞', '◡', '◟']}, placement="right") 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: - zip.extractall(cwd) - os.remove(path("tools.zip")) - spinner.stop() - # Initial cleanup if os.path.exists("temp"): shutil.rmtree("temp")