OLD | NEW |
(Empty) | |
| 1 #!/usr/bin/python |
| 2 # Copyright 2013 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. |
| 5 |
| 6 """Extracts all files in a zip file to the current working dir.""" |
| 7 |
| 8 import sys |
| 9 import zipfile |
| 10 |
| 11 |
| 12 def main(argv): |
| 13 if len(argv) == 1: |
| 14 return 'Usage: %s file_to_unzip.zip' % argv[0] |
| 15 with zipfile.ZipFile(argv[1]) as zip_file: |
| 16 zip_file.extractall() |
| 17 |
| 18 |
| 19 if __name__ == '__main__': |
| 20 sys.exit(main(sys.argv)) |
OLD | NEW |