add --fix-xml

압축파일 내의 경로를 제거하도록 util.py 수정
This commit is contained in:
2026-08-02 19:54:11 +09:00
parent 178776d307
commit a4e0ae0b08
2 changed files with 22 additions and 16 deletions

View File

@@ -232,10 +232,9 @@ def ExtractZIP(zip_file: str, extract_to: str):
#
def CreateZIP(output_zip: str, files: list[str]) -> bool:
with zipfile.ZipFile(output_zip, 'w') as zf:
with zipfile.ZipFile(output_zip, 'w', compression=zipfile.ZIP_DEFLATED) as zf:
for file in files:
pathTemp = os.path.join('root', os.path.basename(file))
zf.write(file, pathTemp)
zf.write(file, os.path.basename(file))
bRet = False
if os.path.exists(output_zip):