Fix architecture checks for Mac devices

This commit is contained in:
jdholtz 2023-08-16 20:43:16 -05:00
parent f91b7d86bc
commit 0ae871fed3
No known key found for this signature in database
GPG Key ID: A3A87CFD1E4A1B65
1 changed files with 2 additions and 1 deletions

View File

@ -120,7 +120,8 @@ class Patcher(object):
The Mac platform name changes based on the architecture and Chromedriver version desired
"""
platform_name = "mac"
is_arm_arch = any(["aarch64", "arm"] in platform.machine())
# Matches the platform as a substring so values like 'arm64' and 'armv7l' work
is_arm_arch = any(p in platform.machine() for p in ["aarch64", "arm"])
if self.is_old_chromedriver:
if is_arm_arch: