All Python scripts use relative path

This commit is contained in:
Howard Wu 2023-03-26 20:31:44 +08:00
parent 975bdcf4d8
commit 86759ad241
6 changed files with 22 additions and 25 deletions

View file

@ -26,7 +26,7 @@ from pathlib import Path
arch = sys.argv[1]
zip_name = ""
wsa_zip_path= Path(sys.argv[2]).resolve()
wsa_zip_path= Path(sys.argv[2])
with zipfile.ZipFile(wsa_zip_path) as zip:
for f in zip.filelist: