Not much needed to change, just added parentheses to the print statements for python 3 to be happy.
I also wrapped up the failed ctypes.windll.LoadLibrary to raise a ImportError instead, since on Linux, it raises an unhelpful AttributeError when HIDAPI isn't installed on the system.
Not much needed to change, just added parentheses to the print statements for python 3 to be happy.
I also wrapped up the failed
ctypes.windll.LoadLibrary
to raise a ImportError instead, since on Linux, it raises an unhelpful AttributeError when HIDAPI isn't installed on the system.