14 lines
423 B
Python
14 lines
423 B
Python
# -*- coding: utf-8 -*-
|
|
import zipfile
|
|
import os
|
|
|
|
# 解压Allure压缩包
|
|
zip_path = r'C:\Users\a\PyCharmMiscProject\smart-management-auto-test\allure.zip'
|
|
extract_path = r'C:\Users\a\PyCharmMiscProject\smart-management-auto-test\allure'
|
|
|
|
try:
|
|
with zipfile.ZipFile(zip_path, 'r') as zip_ref:
|
|
zip_ref.extractall(extract_path)
|
|
print("Allure解压成功")
|
|
except Exception as e:
|
|
print(f"解压失败: {e}") |