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
|
import hid # type: ignore
|
||||||
from .enums import (LedOptions, PlayerID,
|
from .enums import (LedOptions, PlayerID,
|
||||||
PulseOptions, TriggerModes, Brightness)
|
PulseOptions, TriggerModes, Brightness)
|
||||||
|
2
setup.py
2
setup.py
@@ -6,7 +6,7 @@ with open("README.md", "r") as fh:
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='pydualsense',
|
name='pydualsense',
|
||||||
version='0.4.1',
|
version='0.4.2',
|
||||||
description='use your DualSense (PS5) controller with python',
|
description='use your DualSense (PS5) controller with python',
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
long_description_content_type="text/markdown",
|
long_description_content_type="text/markdown",
|
||||||
|
Reference in New Issue
Block a user