Skip to content

Commit feb2c22

Browse files
committed
Add an internal method for later
1 parent 3cc26bd commit feb2c22

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

seleniumbase/fixtures/shared_utils.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,20 @@ def pip_install(package, version=None):
2929
)
3030

3131

32+
def is_arm_linux():
33+
"""Returns True if machine is ARM Linux.
34+
This will be useful once Google adds
35+
support for ARM Linux ChromeDriver.
36+
(Raspberry Pi uses ARM architecture.)"""
37+
return (
38+
platform.system() == "Linux"
39+
and platform.machine() == "aarch64"
40+
)
41+
42+
3243
def is_arm_mac():
33-
"""(M1 / M2 Macs use the ARM processor)"""
44+
"""Returns True if machine is ARM Mac.
45+
(Eg. M1 / M2 Macs use ARM processors)"""
3446
return (
3547
"darwin" in sys.platform
3648
and (

0 commit comments

Comments
 (0)