OLD | NEW |
(Empty) | |
| 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. |
| 3 # |
| 4 # Use of this source code is governed by a BSD-style license |
| 5 # that can be found in the LICENSE file in the root of the source |
| 6 # tree. An additional intellectual property rights grant can be found |
| 7 # in the file PATENTS. All contributing project authors may |
| 8 # be found in the AUTHORS file in the root of the source tree. |
| 9 |
| 10 """Downloads precompiled tools needed for video quality analysis.""" |
| 11 |
| 12 import os |
| 13 import subprocess |
| 14 import sys |
| 15 |
| 16 |
| 17 SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__)) |
| 18 |
| 19 |
| 20 def main(): |
| 21 cmd = [ |
| 22 'download_from_google_storage', |
| 23 '--directory', |
| 24 '--num_threads=10', |
| 25 '--bucket', 'chrome-webrtc-resources', |
| 26 '--auto_platform', |
| 27 '--recursive', |
| 28 SCRIPT_DIR, |
| 29 ] |
| 30 print 'Downloading video quality analysis tools...' |
| 31 subprocess.check_call(cmd) |
| 32 |
| 33 |
| 34 if __name__ == '__main__': |
| 35 sys.exit(main()) |
OLD | NEW |