Fix skydb on linux when adb is not in path.

TBR=iansf@google.com

Review URL: https://codereview.chromium.org/1159193003
This commit is contained in:
Eric Seidel 2015-05-29 15:38:59 -07:00
parent f4971649a5
commit 8dcd36b95b

View File

@ -37,13 +37,14 @@ ANDROID_APK_NAME = 'MojoShell.apk'
PID_FILE_PATH = "/tmp/skydb.pids"
CACHE_LINKS_PATH = '/tmp/mojo_cache_links'
# TODO(iansf): Fix undefined behavior when you have more than one device attached.
SYSTEM_LIBS_ROOT_PATH = '/tmp/device_libs/%s' % (subprocess.check_output(['adb', 'get-serialno']).strip())
SRC_ROOT = skypy.paths.Paths('ignored').src_root
ADB_PATH = os.path.join(SRC_ROOT,
'third_party/android_tools/sdk/platform-tools/adb')
# TODO(iansf): Fix undefined behavior when you have more than one device attached.
SYSTEM_LIBS_ROOT_PATH = '/tmp/device_libs/%s' % (subprocess.check_output([ADB_PATH, 'get-serialno']).strip())
# FIXME: Move this into mopy.config
def gn_args_from_build_dir(build_dir):