summaryrefslogtreecommitdiffstats
path: root/google_apis
diff options
context:
space:
mode:
authorjamiewalch@chromium.org <jamiewalch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-18 19:36:33 +0000
committerjamiewalch@chromium.org <jamiewalch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-18 19:36:33 +0000
commita769b6cc414cf4c5b49936282939fded59648650 (patch)
tree5979d3c4471d6c6d6a55c391a3527d480d7f1da3 /google_apis
parent2d587947603fd887cba40f5abd64dd8559b443ae (diff)
downloadchromium_src-a769b6cc414cf4c5b49936282939fded59648650.zip
chromium_src-a769b6cc414cf4c5b49936282939fded59648650.tar.gz
chromium_src-a769b6cc414cf4c5b49936282939fded59648650.tar.bz2
Remove API keys from source.
Also fixes a bug in google_api_keys that made it fail when used as a module. BUG= Review URL: https://chromiumcodereview.appspot.com/10939005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157405 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'google_apis')
-rwxr-xr-xgoogle_apis/google_api_keys.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/google_apis/google_api_keys.py b/google_apis/google_api_keys.py
index 26fd236..d29fe35 100755
--- a/google_apis/google_api_keys.py
+++ b/google_apis/google_api_keys.py
@@ -23,7 +23,7 @@ DUMMY_TOKEN = 'dummytoken'
def _GetTokenFromOfficialFile(token_name):
"""Parses the token from the official file if it exists, else returns None."""
- official_path = os.path.join(sys.path[0],
+ official_path = os.path.join(os.path.dirname(__file__),
'internal/google_chrome_api_keys.h')
if not os.path.isfile(official_path):
return None