Enable Windows Support
This commit is contained in:
parent
52719c0b7d
commit
206822ac69
|
@ -17,6 +17,7 @@ import usb.core
|
|||
import usb.util
|
||||
import serial
|
||||
import socket
|
||||
import sys
|
||||
|
||||
from .escpos import Escpos
|
||||
from .exceptions import USBNotFoundError
|
||||
|
@ -68,6 +69,9 @@ class Usb(Escpos):
|
|||
self.idVendor = self.device.idVendor
|
||||
self.idProduct = self.device.idProduct
|
||||
|
||||
# detach_kernel_driver() doesn't really work on Windows,
|
||||
# causing the library to not work on that platform.
|
||||
if sys.platform != 'win32':
|
||||
check_driver = None
|
||||
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue