Skip to content

Commit f114c0f

Browse files
committed
Fix driver downloads on M1/M2 Macs
1 parent 414a9cb commit f114c0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

seleniumbase/console_scripts/sb_install.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ def main(override=None, intel_for_uc=None):
232232
if (
233233
"arm" in platform.processor().lower()
234234
and not intel_for_uc
235-
and int(use_version) > 105
235+
and int(use_version.split(".")[0]) > 105
236236
):
237237
file_name = "chromedriver_mac_arm64.zip"
238238
else:
@@ -402,7 +402,7 @@ def main(override=None, intel_for_uc=None):
402402
elif "darwin" in sys_plat:
403403
if (
404404
"arm" in platform.processor().lower()
405-
and int(use_version) > 104
405+
and int(use_version.split(".")[0]) > 104
406406
):
407407
file_name = "edgedriver_mac64_m1.zip"
408408
else:

0 commit comments

Comments
 (0)