This commit is contained in:
Howard20181 2022-08-23 13:04:16 +08:00
parent 9817f89a94
commit 9117ee91d1
2 changed files with 21 additions and 22 deletions

View file

@ -25,10 +25,9 @@ with zipfile.ZipFile(Path.cwd().parent / "download/wsa.zip") as zip:
if arch in f.filename.lower():
zip_name = f.filename
output_name = zip_name[11:-5]
print(output_name)
if not os.path.isfile(workdir / zip_name):
zip_path = workdir / zip_name
#print(f"unzipping to {workdir}", flush=True)
print(f"unzipping to {workdir}", flush=True)
zip.extract(f, workdir)
ver_no = zip_name.split("_")
long_ver = ver_no[1]
@ -55,7 +54,5 @@ with zipfile.ZipFile(Path.cwd().parent / "download/wsa.zip") as zip:
l.extract(g, workdir / 'xml')
with zipfile.ZipFile(zip_path) as zip:
if not os.path.isdir(workdir / arch):
#print(f"unzipping from {zip_path}", flush=True)
print(f"unzipping from {zip_path}", flush=True)
zip.extractall(workdir / arch)
#print("done", flush=True)