mirror of
https://github.com/bkerler/mtkclient.git
synced 2024-11-30 19:26: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')
|
||||
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:
|
||||
|
|
|
@ -2,5 +2,4 @@ wheel
|
|||
pyusb
|
||||
pycryptodome
|
||||
colorama
|
||||
usb
|
||||
|
||||
usb
|
Loading…
Reference in a new issue