Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(891)

Side by Side Diff: build/get_sdk_extras_packages.py

Issue 869633003: Fix install-build-deps-android.sh launching of get_sdk_extras_packages.py (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: switch from inspect to __file__ Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | build/install-build-deps-android.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2014 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2014 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 import json 6 import json
7 import os 7 import os
8 import sys 8 import sys
9 9
10 SDK_EXTRAS_JSON_FILE = os.path.join(os.path.dirname(sys.argv[0]), 10 SDK_EXTRAS_JSON_FILE = os.path.join(os.path.dirname(__file__),
11 'android_sdk_extras.json') 11 'android_sdk_extras.json')
12 12
13 def main(): 13 def main():
14 with open(SDK_EXTRAS_JSON_FILE) as json_file: 14 with open(SDK_EXTRAS_JSON_FILE) as json_file:
15 packages = json.load(json_file) 15 packages = json.load(json_file)
16 for package in packages: 16 for package in packages:
17 print package['package'].replace('_', ' ') 17 print package['package'].replace('_', ' ')
18 18
19 19
20 if __name__ == '__main__': 20 if __name__ == '__main__':
21 sys.exit(main()) 21 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | build/install-build-deps-android.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698