From 24dabcc45f4538cfadb0b2623304a02d542e9538 Mon Sep 17 00:00:00 2001 From: Artem Popov Date: Fri, 5 Jan 2024 21:22:26 +0100 Subject: [PATCH] fix varibright detection on windows --- monome.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/monome.py b/monome.py index 4886364..8d76ebc 100644 --- a/monome.py +++ b/monome.py @@ -125,7 +125,7 @@ def __init__(self, prefix='monome'): self.ready_event.add_handler(self._set_varibright) def _set_varibright(self): - if not re.match('^m\d+$', self.id): + if not re.match(r'^m\d+$', self.id, flags=re.IGNORECASE): self.varibright = False def _on_grid_key(self, addr, path, x, y, s): diff --git a/setup.py b/setup.py index 971e18f..a219eeb 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ url='https://github.com/artfwo/pymonome', description='a monome serialosc client in python', long_description=long_description, - version='0.11', + version='0.11.1', py_modules=['monome'], include_package_data=True, install_requires=[