Index: native_client_sdk/src/tools/getos.py |
diff --git a/native_client_sdk/src/tools/getos.py b/native_client_sdk/src/tools/getos.py |
index 89b6c5790054999739fdaa77a94110376d49ae0e..b7eca3b0ce53df92cb121fe5cd685d5e1744a5da 100755 |
--- a/native_client_sdk/src/tools/getos.py |
+++ b/native_client_sdk/src/tools/getos.py |
@@ -144,7 +144,9 @@ def GetNaClArch(platform): |
# If CHROME_PATH is set to point to google-chrome or google-chrome |
# was found in the PATH and we are running on UNIX then google-chrome |
# is a bash script that points to 'chrome' in the same folder. |
- if os.path.basename(chrome_path) == 'google-chrome': |
+ # |
+ # When running beta or dev branch, the name is google-chrome-{beta,dev}. |
+ if os.path.basename(chrome_path).startswith('google-chrome'): |
chrome_path = os.path.join(os.path.dirname(chrome_path), 'chrome') |
Sam Clegg
2014/07/23 19:57:44
Can we also check that it exists and is executable
binji
2014/07/23 20:58:28
Done.
|
try: |