mirror of
https://github.com/Escartem/AnimeWwise.git
synced 2026-06-15 15:20:24 +08:00
don't check zip anymore
This commit is contained in:
12
extract.py
12
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")
|
spinner = Halo(text="spinner", spinner={'interval': 100, 'frames': ['◜', '◠', '◝', '◞', '◡', '◟']}, placement="right")
|
||||||
|
|
||||||
def main():
|
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
|
# Initial cleanup
|
||||||
if os.path.exists("temp"):
|
if os.path.exists("temp"):
|
||||||
shutil.rmtree("temp")
|
shutil.rmtree("temp")
|
||||||
|
|||||||
Reference in New Issue
Block a user