| OLD | NEW |
| 1 # Copyright 2015 The Swarming Authors. All rights reserved. | 1 # Copyright 2015 The Swarming Authors. All rights reserved. |
| 2 # Use of this source code is governed by the Apache v2.0 license that can be | 2 # Use of this source code is governed by the Apache v2.0 license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 """OS abstraction OS specific utility functions.""" | 5 """OS abstraction OS specific utility functions.""" |
| 6 | 6 |
| 7 import sys | 7 import sys |
| 8 | 8 |
| 9 | 9 |
| 10 if sys.platform == 'cygwin': | 10 if sys.platform == 'cygwin': |
| 11 import gce | 11 import gce |
| 12 import posix | 12 import posix |
| 13 import win | 13 import win |
| 14 from gce import is_gce | 14 from gce import is_gce |
| 15 | 15 |
| 16 if sys.platform == 'darwin': | 16 if sys.platform == 'darwin': |
| 17 import osx | 17 import osx |
| 18 import posix | 18 import posix |
| 19 is_gce = lambda: False | 19 is_gce = lambda: False |
| 20 | 20 |
| 21 | 21 |
| 22 if sys.platform == 'win32': | 22 if sys.platform == 'win32': |
| 23 import gce | 23 import gce |
| 24 import win | 24 import win |
| 25 from gce import is_gce | 25 from gce import is_gce |
| 26 | 26 |
| 27 | 27 |
| 28 if sys.platform == 'linux2': | 28 if sys.platform == 'linux2': |
| 29 import android |
| 29 import gce | 30 import gce |
| 30 import linux | 31 import linux |
| 31 import posix | 32 import posix |
| 32 from gce import is_gce | 33 from gce import is_gce |
| OLD | NEW |