Added support for MacOS

This commit is contained in:
cygnusx 2021-11-30 11:21:07 +01:00
parent 78785f9ef7
commit fdb0e952b9
2 changed files with 2 additions and 3 deletions

View file

@ -98,7 +98,7 @@ class usb_class(metaclass=LogBase):
fh = logging.FileHandler(logfilename, encoding='utf-8')
self.__logger.addHandler(fh)
if sys.platform.startswith('freebsd') or sys.platform.startswith('linux'):
if sys.platform.startswith('freebsd') or sys.platform.startswith('linux') or sys.platform.startswith('darwin'):
self.backend = usb.backend.libusb1.get_backend(find_library=lambda x: "libusb-1.0.so")
elif sys.platform.startswith('win32'):
if calcsize("P") * 8 == 64:

View file

@ -2,5 +2,4 @@ wheel
pyusb
pycryptodome
colorama
usb
usb