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

Unified 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: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | build/install-build-deps-android.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/get_sdk_extras_packages.py
diff --git a/build/get_sdk_extras_packages.py b/build/get_sdk_extras_packages.py
index 32e55643483ba8bdd97c0b80bee89c1d22d7d424..9f0c97c46e1e667f9e907014110c4367fc48a431 100755
--- a/build/get_sdk_extras_packages.py
+++ b/build/get_sdk_extras_packages.py
@@ -3,11 +3,13 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import inspect
import json
import os
import sys
-SDK_EXTRAS_JSON_FILE = os.path.join(os.path.dirname(sys.argv[0]),
+FILENAME = inspect.getframeinfo(inspect.currentframe()).filename
Nico 2015/01/30 17:29:37 The usual way we do this is THIS_DIR = os.path.a
pauljensen 2015/01/30 17:31:41 __file__ is not defined when this is invoked in wa
+SDK_EXTRAS_JSON_FILE = os.path.join(os.path.dirname(FILENAME),
'android_sdk_extras.json')
def main():
« 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