Skip to content

Instantly share code, notes, and snippets.

@AhnSeongHyun
Created May 29, 2012 03:14
Show Gist options
  • Save AhnSeongHyun/2822327 to your computer and use it in GitHub Desktop.
Save AhnSeongHyun/2822327 to your computer and use it in GitHub Desktop.
[PYTHON]toZip
import zipfile
def toZip(file_list, zip_file_name):
zippedHelp = zipfile.ZipFile("./"+zip_file_name, "w", compression=zipfile.ZIP_DEFLATED )
for file in file_list:
zippedHelp.write("./"+file);
zippedHelp.close();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment