mirror of
https://github.com/MustardChef/WSABuilds.git
synced 2025-02-18 12:16:21 +01:00
Fix stupid mistake
This commit is contained in:
parent
2a86e252a2
commit
823f1895d0
@ -29,11 +29,11 @@ warnings.filterwarnings("ignore")
|
|||||||
|
|
||||||
arch = sys.argv[1]
|
arch = sys.argv[1]
|
||||||
|
|
||||||
if not os.path.exists(Path.cwd().parent / sys.argv[2] / "wsa"):
|
|
||||||
os.makedirs(Path.cwd().parent / sys.argv[2] / "wsa")
|
|
||||||
zip_name = ""
|
zip_name = ""
|
||||||
wsa_zip_path= Path(sys.argv[2]).resolve()
|
wsa_zip_path= Path(sys.argv[2]).resolve()
|
||||||
workdir = Path.cwd().parent / sys.argv[3] / "wsa"
|
workdir = Path.cwd().parent / sys.argv[3] / "wsa"
|
||||||
|
if not os.path.exists(workdir):
|
||||||
|
os.makedirs(workdir)
|
||||||
with zipfile.ZipFile(wsa_zip_path) as zip:
|
with zipfile.ZipFile(wsa_zip_path) as zip:
|
||||||
for f in zip.filelist:
|
for f in zip.filelist:
|
||||||
if arch in f.filename.lower():
|
if arch in f.filename.lower():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user