1
0
mirror of https://github.com/Escartem/AnimeWwise.git synced 2026-06-05 07:50:23 +08:00

handle tools

This commit is contained in:
Escartem
2023-10-07 11:26:57 +02:00
parent 157da72737
commit a4aad31b4e

View File

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