mirror of
https://github.com/bkerler/mtkclient.git
synced 2024-12-03 12:46:56 -05:00
Added support for MacOS
This commit is contained in:
parent
78785f9ef7
commit
fdb0e952b9
2 changed files with 2 additions and 3 deletions
|
@ -98,7 +98,7 @@ class usb_class(metaclass=LogBase):
|
||||||
fh = logging.FileHandler(logfilename, encoding='utf-8')
|
fh = logging.FileHandler(logfilename, encoding='utf-8')
|
||||||
self.__logger.addHandler(fh)
|
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")
|
self.backend = usb.backend.libusb1.get_backend(find_library=lambda x: "libusb-1.0.so")
|
||||||
elif sys.platform.startswith('win32'):
|
elif sys.platform.startswith('win32'):
|
||||||
if calcsize("P") * 8 == 64:
|
if calcsize("P") * 8 == 64:
|
||||||
|
|
|
@ -3,4 +3,3 @@ pyusb
|
||||||
pycryptodome
|
pycryptodome
|
||||||
colorama
|
colorama
|
||||||
usb
|
usb
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue