fix find_chrome_executable() on x86 Windows
This commit is contained in:
parent
0bf986ee8b
commit
843173827a
|
@ -689,12 +689,13 @@ def find_chrome_executable():
|
||||||
for item in map(
|
for item in map(
|
||||||
os.environ.get, ("PROGRAMFILES", "PROGRAMFILES(X86)", "LOCALAPPDATA")
|
os.environ.get, ("PROGRAMFILES", "PROGRAMFILES(X86)", "LOCALAPPDATA")
|
||||||
):
|
):
|
||||||
for subitem in (
|
if item is not None:
|
||||||
"Google/Chrome/Application",
|
for subitem in (
|
||||||
"Google/Chrome Beta/Application",
|
"Google/Chrome/Application",
|
||||||
"Google/Chrome Canary/Application",
|
"Google/Chrome Beta/Application",
|
||||||
):
|
"Google/Chrome Canary/Application",
|
||||||
candidates.add(os.sep.join((item, subitem, "chrome.exe")))
|
):
|
||||||
|
candidates.add(os.sep.join((item, subitem, "chrome.exe")))
|
||||||
for candidate in candidates:
|
for candidate in candidates:
|
||||||
if os.path.exists(candidate) and os.access(candidate, os.X_OK):
|
if os.path.exists(candidate) and os.access(candidate, os.X_OK):
|
||||||
return os.path.normpath(candidate)
|
return os.path.normpath(candidate)
|
||||||
|
|
Loading…
Reference in New Issue