Fix Python > 3.8 dll import

This commit is contained in:
Florian Kaiser
2021-01-01 20:32:55 +01:00
parent 93b5e38e6e
commit 11e78fbece
2 changed files with 6 additions and 2 deletions

View File

@@ -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)

View File

@@ -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",