Skip to content

Commit 4aed2bb

Browse files
committed
shutil.which() in Firefox lookup.
1 parent 7abb9b5 commit 4aed2bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/browser_common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def get_safari_version():
166166
def get_firefox_version():
167167
if not is_firefox():
168168
return UNSUPPORTED
169-
exe_path = shlex.split(EMTEST_BROWSER)[0]
169+
exe_path = shutil.which(shlex.split(EMTEST_BROWSER)[0])
170170
ini_path = os.path.join(os.path.dirname(exe_path), '../Resources/platform.ini' if MACOS else 'platform.ini')
171171
# On Linux, Firefox system installation uses a specific directory structure,
172172
# where platform.ini is not located in same directory as the browser executable.

0 commit comments

Comments
 (0)