mirror of
https://github.com/Escartem/AnimeWwise.git
synced 2026-06-11 04:05:37 +08:00
handle tools
This commit is contained in:
@@ -15,6 +15,9 @@ spinner = Halo(text="spinner", spinner={'interval': 100, 'frames': ['◜', '◠'
|
|||||||
def main():
|
def main():
|
||||||
# Extract tools on first launch
|
# Extract tools on first launch
|
||||||
if not os.path.exists("tools"):
|
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.text = "Extracting tools for first launch"
|
||||||
spinner.start()
|
spinner.start()
|
||||||
with zipfile.ZipFile(path("tools.zip"), "r") as zip:
|
with zipfile.ZipFile(path("tools.zip"), "r") as zip:
|
||||||
|
|||||||
Reference in New Issue
Block a user