| Index: unzip.py
|
| ===================================================================
|
| --- unzip.py (revision 0)
|
| +++ unzip.py (revision 0)
|
| @@ -0,0 +1,20 @@
|
| +#!/usr/bin/python
|
| +# Copyright 2013 The Chromium Authors. All rights reserved.
|
| +# Use of this source code is governed by a BSD-style license that can be
|
| +# found in the LICENSE file.
|
| +
|
| +"""Extracts all files in a zip file to the current working dir."""
|
| +
|
| +import sys
|
| +import zipfile
|
| +
|
| +
|
| +def main(argv):
|
| + if len(argv) == 1:
|
| + return 'Usage: %s file_to_unzip.zip' % argv[0]
|
| + with zipfile.ZipFile(argv[1]) as zip_file:
|
| + zip_file.extractall()
|
| +
|
| +
|
| +if __name__ == '__main__':
|
| + sys.exit(main(sys.argv))
|
|
|
| Property changes on: unzip.py
|
| ___________________________________________________________________
|
| Added: svn:eol-style
|
| + LF
|
| Added: svn:executable
|
| + *
|
|
|
|
|