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

Side by Side Diff: appengine/swarming/swarming_bot/platforms/__init__.py

Issue 1306633002: Overhaul Android support and make Swarming bot use python-adb (Closed) Base URL: git@github.com:luci/luci-py.git@master
Patch Set: Packaged libusb1 as a relative package to fix import paths Created 5 years, 4 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 unified diff | Download patch
OLDNEW
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
OLDNEW
« no previous file with comments | « appengine/swarming/swarming_bot/os_utilities.py ('k') | appengine/swarming/swarming_bot/platforms/android.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698