Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(432)

Unified Diff: unzip.py

Issue 25857002: Adding apprtc and downloading of google appengine sdk to webrtc.DEPS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/webrtc/webrtc.DEPS/
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« DEPS ('K') | « google-appengine.zip.sha1 ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
+ *
« DEPS ('K') | « google-appengine.zip.sha1 ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698