3 # Rec10 TS Recording Tools
4 # Copyright (C) 2009-2011 Yukikaze
10 def addFile2FileZip(addfile,basefile):
13 if os.path.exists(basefile):
14 th=zipfile.ZipFile(basefile,'a',zipfile.ZIP_DEFLATED)
16 th=zipfile.ZipFile(basefile,'w',zipfile.ZIP_DEFLATED)
17 if os.path.exists(addfile):
18 th.write(addfile,os.path.basename(addfile))