Chromium Code Reviews| Index: google_apis/google_api_keys.py |
| diff --git a/google_apis/google_api_keys.py b/google_apis/google_api_keys.py |
| index 26fd23632db2020426b2f2f92ccfd486e9db6cf1..d29fe35af1f08459789766e74ba6ca8374dd53fc 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__), |
|
Jói
2012/09/18 09:31:40
Thanks, my bad, sys.path[0] is only guaranteed to
|
| 'internal/google_chrome_api_keys.h') |
| if not os.path.isfile(official_path): |
| return None |