mirror of
https://github.com/MustardChef/WSABuilds.git
synced 2024-12-27 20:01:49 +01:00
Update extractWSA.py
This commit is contained in:
parent
289088134c
commit
29d55d7a65
@ -24,9 +24,11 @@ with zipfile.ZipFile(Path.cwd().parent / "download/wsa.zip") as zip:
|
||||
for f in zip.filelist:
|
||||
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]
|
||||
@ -53,7 +55,7 @@ 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)
|
||||
#print("done", flush=True)
|
||||
|
Loading…
Reference in New Issue
Block a user