OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | 2 # Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. |
3 # | 3 # |
4 # Use of this source code is governed by a BSD-style license | 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 | 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 | 6 # tree. An additional intellectual property rights grant can be found |
7 # in the file PATENTS. All contributing project authors may | 7 # in the file PATENTS. All contributing project authors may |
8 # be found in the AUTHORS file in the root of the source tree. | 8 # be found in the AUTHORS file in the root of the source tree. |
9 | 9 |
10 """Downloads prebuilt AppRTC and Go from WebRTC storage and unpacks it. | 10 """Downloads prebuilt AppRTC and Go from WebRTC storage and unpacks it. |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 if os.path.isfile(golang_zip_path + '.sha1'): | 49 if os.path.isfile(golang_zip_path + '.sha1'): |
50 utils.DownloadFilesFromGoogleStorage(golang_path) | 50 utils.DownloadFilesFromGoogleStorage(golang_path) |
51 | 51 |
52 if output_dir is not None: | 52 if output_dir is not None: |
53 utils.RemoveDirectory(os.path.join(output_dir, 'go')) | 53 utils.RemoveDirectory(os.path.join(output_dir, 'go')) |
54 utils.UnpackArchiveTo(golang_zip_path, output_dir) | 54 utils.UnpackArchiveTo(golang_zip_path, output_dir) |
55 | 55 |
56 | 56 |
57 if __name__ == '__main__': | 57 if __name__ == '__main__': |
58 sys.exit(main(sys.argv)) | 58 sys.exit(main(sys.argv)) |
OLD | NEW |