Eric Seidel bd5c018fa4 Add skydb logcat command and make relative build_dir work
This fixes 3 little bugs in skydb:
1.  Adds a logcat command to make it easy to see android logs
2.  Fixes using relative build dirs in skydb start
3.  Stops sending /quit to debugger.cc since mojo shutdown
doesn't actually work (crashes).

--gdb is still broken, but I'll fix that in a second change.

R=ojan@chromium.org

Review URL: https://codereview.chromium.org/852483002
2015-01-12 15:12:07 -08:00

16 lines
715 B
Python

# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
# FIXME: All callers should use mopy/paths.py instead!
class Paths(object):
def __init__(self, build_directory):
self.src_root = os.path.abspath(os.path.join(__file__,
os.pardir, os.pardir, os.pardir, os.pardir))
self.sky_root = os.path.join(self.src_root, 'sky')
self.gen_root = os.path.join(self.src_root, build_directory, 'gen')
self.sky_tools_directory = os.path.join(self.src_root, 'sky', 'tools')
self.mojo_shell_path = os.path.join(self.src_root, build_directory, 'mojo_shell')