mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fix sky_tool's calling of adb, and shelldb's analyze and stop
Just silly fixes needed for our 4 copies of our python run script. R=ianh@google.com Review URL: https://codereview.chromium.org/1064983003
This commit is contained in:
parent
9717a17371
commit
814d87fc87
@ -209,8 +209,19 @@ class StopSky(object):
|
||||
|
||||
|
||||
class SkyShellRunner(object):
|
||||
def _check_for_adb(self):
|
||||
try:
|
||||
subprocess.call([ADB_PATH, '--help'])
|
||||
except OSError:
|
||||
print "'adb' (from the Android SDK) not in $PATH, can't continue."
|
||||
return False
|
||||
return True
|
||||
|
||||
|
||||
def main(self):
|
||||
logging.basicConfig(level=logging.WARNING)
|
||||
if not self._check_for_adb()
|
||||
sys.exit(2)
|
||||
|
||||
parser = argparse.ArgumentParser(description='Sky Demo Runner')
|
||||
subparsers = parser.add_subparsers(help='sub-command help')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user