Skip to content

Commit

Permalink
Update how flutter_gdb finds the root of the engine source tree (flut…
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-simmons authored Sep 17, 2016
1 parent 44f0c5c commit 9d98290
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sky/tools/flutter_gdb
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 9d98290

Please sign in to comment.