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
diff --git a/google_apis/google_api_keys.py b/google_apis/google_api_keys.py
index 26fd236..d29fe35a 100755
--- a/google_apis/google_api_keys.py
+++ b/google_apis/google_api_keys.py
@@ -23,7 +23,7 @@
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