macOS: Remove udev rule warning

Warning about missing udev rules do not apply to macOS.

Related #2729
This commit is contained in:
MattHag 2024-12-27 01:03:20 +01:00 committed by Peter F. Patel-Schneider
parent fd17e47382
commit 83c380f85b
1 changed files with 2 additions and 1 deletions

View File

@ -178,7 +178,8 @@ def main():
udev_file = "42-logitech-unify-permissions.rules"
if (
logger.isEnabledFor(logging.WARNING)
platform.system() == "Linux"
and logger.isEnabledFor(logging.WARNING)
and not os.path.isfile("/etc/udev/rules.d/" + udev_file)
and not os.path.isfile("/usr/lib/udev/rules.d/" + udev_file)
and not os.path.isfile("/usr/local/lib/udev/rules.d/" + udev_file)