Fix Python > 3.8 dll import
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
from os import device_encoding
|
||||
|
||||
# needed for python > 3.8
|
||||
if sys.version_info >= (3,8):
|
||||
os.add_dll_directory(os.getcwd())
|
||||
|
||||
import hid # type: ignore
|
||||
from .enums import (LedOptions, PlayerID,
|
||||
PulseOptions, TriggerModes, Brightness)
|
||||
|
Reference in New Issue
Block a user