mirror of
https://github.com/LSPosed/MagiskOnWSALocal.git
synced 2025-09-09 22:14:35 +00:00
close #28
This commit is contained in:
parent
9817f89a94
commit
9117ee91d1
2 changed files with 21 additions and 22 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue