telecastr / tp2ctl

Lenovo Trackpoint Keyboard II configuration tool
MIT License
19 stars 2 forks source link

use os.path.exists, not os.path.isfile #1

Closed flokli closed 2 years ago

flokli commented 2 years ago

/dev/hidraw* files are all not regular files, but device files.

os.path.isfile will always return false, making it impossible to explicitly specify a /dev/hidraw device to use.