From a769b6cc414cf4c5b49936282939fded59648650 Mon Sep 17 00:00:00 2001 From: "jamiewalch@chromium.org" Date: Tue, 18 Sep 2012 19:36:33 +0000 Subject: 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 --- google_apis/google_api_keys.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'google_apis') 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 -- cgit v1.1