citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

unzip-stream (202B)


      1 #!/usr/bin/env python
      2 import zipfile
      3 import sys
      4 import StringIO
      5 data = StringIO.StringIO(sys.stdin.read())
      6 z = zipfile.ZipFile(data)
      7 dest = sys.argv[1] if len(sys.argv) == 2 else '.'
      8 z.extractall(dest)