app/utils/excelmerge/conformity.py
@@ -2,8 +2,8 @@ import random import shutil import string from datetime import datetime from datetime import datetime from openpyxl import load_workbook @@ -65,10 +65,9 @@ template_excel.save(output_path) template_excel.close() # 合并完成后删除无用文件 try: for filename in os.listdir(file_path): file_path_full = os.path.join(file_path, filename) try: if os.path.isfile(file_path_full) or os.path.islink(file_path_full): os.unlink(file_path_full) elif os.path.isdir(file_path_full):