Skip to content

Commit

Permalink
remove disutils execute from udev_rules as not run inside setuptools
Browse files Browse the repository at this point in the history
  • Loading branch information
tuna-f1sh committed Jan 8, 2024
1 parent d8be969 commit 9465cdd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions openant/udev_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
import os
import shutil
import platform

from distutils.util import execute
from subprocess import call


Expand Down Expand Up @@ -60,8 +58,8 @@ def install_udev_rules(raise_exception):

if check_root():
shutil.copy("resources/42-ant-usb-sticks.rules", "/etc/udev/rules.d")
execute(udev_reload_rules, (), "Reloading udev rules")
execute(udev_trigger, (), "Triggering udev rules")
udev_reload_rules()
udev_trigger()
else:
msg = 'You must have root privileges to install udev rules. Run "sudo python setup.py udev_rules"'
if raise_exception:
Expand Down

0 comments on commit 9465cdd

Please sign in to comment.