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 """Utilities for all our deps-management stuff.""" | 10 """Utilities for all our deps-management stuff.""" |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 | 111 |
112 | 112 |
113 def GetPlatform(): | 113 def GetPlatform(): |
114 if sys.platform.startswith('win'): | 114 if sys.platform.startswith('win'): |
115 return 'win' | 115 return 'win' |
116 if sys.platform.startswith('linux'): | 116 if sys.platform.startswith('linux'): |
117 return 'linux' | 117 return 'linux' |
118 if sys.platform.startswith('darwin'): | 118 if sys.platform.startswith('darwin'): |
119 return 'mac' | 119 return 'mac' |
120 raise Exception("Can't run on platform %s." % sys.platform) | 120 raise Exception("Can't run on platform %s." % sys.platform) |
OLD | NEW |