This commit is contained in:
sezanzeb 2022-05-08 10:12:23 +02:00
parent ebde37856e
commit 2d2312080a
2 changed files with 3 additions and 4 deletions

View File

@ -43,7 +43,6 @@ from evdev.ecodes import (
REL_WHEEL_HI_RES, REL_WHEEL_HI_RES,
REL_HWHEEL_HI_RES, REL_HWHEEL_HI_RES,
) )
from pydantic import ValidationError
from inputremapper.configs.preset import Preset from inputremapper.configs.preset import Preset
from inputremapper.configs.mapping import Mapping, UIMapping from inputremapper.configs.mapping import Mapping, UIMapping
@ -53,7 +52,7 @@ from inputremapper.user import HOME
from inputremapper.configs.paths import get_preset_path, mkdir, CONFIG_PATH from inputremapper.configs.paths import get_preset_path, mkdir, CONFIG_PATH
from inputremapper.configs.system_mapping import system_mapping from inputremapper.configs.system_mapping import system_mapping
from inputremapper.injection.global_uinputs import global_uinputs from inputremapper.injection.global_uinputs import global_uinputs
from inputremapper.injection.macros.parse import parse, is_this_a_macro from inputremapper.injection.macros.parse import is_this_a_macro
def all_presets() -> List[os.PathLike]: def all_presets() -> List[os.PathLike]:

View File

@ -262,8 +262,8 @@ except pkg_resources.DistributionNotFound as error:
logger.info("Could not figure out the evdev version") logger.info("Could not figure out the evdev version")
logger.debug(error) logger.debug(error)
# check if the version is something like 1.5b20 or 2.1.3b5 # check if the version is something like 1.5.0-beta or 1.5.0-beta.5
IS_BETA = bool(re.match("[0-9]+b[0-9]+", VERSION.split(".")[-1])) IS_BETA = "beta" in VERSION
def log_info(name="input-remapper"): def log_info(name="input-remapper"):