mirror of
https://github.com/sezanzeb/input-remapper
synced 2024-11-16 06:12:58 +00:00
semver2
This commit is contained in:
parent
ebde37856e
commit
2d2312080a
@ -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]:
|
||||||
|
@ -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"):
|
||||||
|
Loading…
Reference in New Issue
Block a user