File tree Expand file tree Collapse file tree 2 files changed +19
-4
lines changed Expand file tree Collapse file tree 2 files changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -230,7 +230,10 @@ def main(override=None, intel_for_uc=None):
230
230
invalid_run_command ()
231
231
if "darwin" in sys_plat :
232
232
if (
233
- "arm" in platform .processor ().lower ()
233
+ (
234
+ "arm" in platform .processor ().lower ()
235
+ or "arm64" in platform .version ().lower ()
236
+ )
234
237
and not intel_for_uc
235
238
and int (use_version .split ("." )[0 ]) > 105
236
239
):
@@ -401,7 +404,10 @@ def main(override=None, intel_for_uc=None):
401
404
suffix = "WINDOWS"
402
405
elif "darwin" in sys_plat :
403
406
if (
404
- "arm" in platform .processor ().lower ()
407
+ (
408
+ "arm" in platform .processor ().lower ()
409
+ or "arm64" in platform .version ().lower ()
410
+ )
405
411
and int (use_version .split ("." )[0 ]) > 104
406
412
):
407
413
file_name = "edgedriver_mac64_m1.zip"
@@ -647,7 +653,10 @@ def main(override=None, intel_for_uc=None):
647
653
if (
648
654
intel_for_uc
649
655
and "darwin" in sys_plat
650
- and "arm" in platform .processor ().lower ()
656
+ and (
657
+ "arm" in platform .processor ().lower ()
658
+ or "arm64" in platform .version ().lower ()
659
+ )
651
660
):
652
661
f_name = "uc_driver"
653
662
new_file = os .path .join (downloads_folder , f_name )
Original file line number Diff line number Diff line change 51
51
PROXY_DIR_LOCK = proxy_helper .PROXY_DIR_LOCK
52
52
PLATFORM = sys .platform
53
53
IS_ARM_MAC = False
54
- if PLATFORM .endswith ("darwin" ) and "arm" in platform .processor ().lower ():
54
+ if (
55
+ PLATFORM .endswith ("darwin" )
56
+ and (
57
+ "arm" in platform .processor ().lower ()
58
+ or "arm64" in platform .version ().lower ()
59
+ )
60
+ ):
55
61
IS_ARM_MAC = True
56
62
IS_WINDOWS = False
57
63
LOCAL_CHROMEDRIVER = None
You can’t perform that action at this time.
0 commit comments