minor fix

This commit is contained in:
Wilson Gomez 2023-01-06 17:56:53 -05:00
parent 06fe17fcf6
commit d719a99b32
1 changed files with 5 additions and 5 deletions

View File

@ -62,13 +62,13 @@ def money(value):
dev_printers = {}
if os.name == 'posix' and pyudev:
context = pyudev.Context()
for device in context.list_devices():
if device.subsystem == 'usbmisc':
# if os.name == 'posix' and pyudev:
# context = pyudev.Context()
# for device in context.list_devices():
# if device.subsystem == 'usbmisc':
# print(device.subsystem, device.sys_path.split('2-1/')[1][0:5], device.device_node)
# dev_printers[str(device.sys_path.split('2-1/')[1][0:5])] = device.device_node
pass
# pass
class Receipt(object):