Update how flutter_gdb finds the root of the engine source tree (flutter/engine#3038)

This commit is contained in:
Jason Simmons
2016-09-16 17:20:56 -07:00
committed by GitHub
parent 923c36f013
commit 0f437854c8

View File

@@ -26,8 +26,10 @@ previous run for a given device, then you can skip this step by passing
ADB_LOCAL_PATH = 'third_party/android_tools/sdk/platform-tools/adb'
def _get_flutter_root():
return os.path.abspath(os.path.join(
__file__, os.pardir, os.pardir, os.pardir))
path = os.path.dirname(os.path.abspath(__file__))
while os.path.basename(path) != 'src':
path = os.path.dirname(path)
return path
def _find_package_pid(adb_path, package):