From 4a9f520433c336be85466e04fd2c1b5fd172eb68 Mon Sep 17 00:00:00 2001 From: generaldenmark Date: Sun, 22 Nov 2020 18:51:28 +0100 Subject: [PATCH] Fixes problem if you have a number in your output name --- pi3/smart_workspace.py | 4 ++-- setup.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pi3/smart_workspace.py b/pi3/smart_workspace.py index a8f10a1..a34f76f 100644 --- a/pi3/smart_workspace.py +++ b/pi3/smart_workspace.py @@ -38,8 +38,8 @@ class WorkSpacer: self.config = self.i3.get_config().__dict__['config'] config_outputs = {} for matchNo, match in enumerate( - re.finditer(r'set (\$[a-zA-Z]+) (' + - names_for_outputs + ')', self.config, re.MULTILINE), start=1 + re.finditer(r'set (\$[a-zA-Z0-9]+) (' + names_for_outputs + ')', + self.config, re.MULTILINE), start=1 ): config_outputs[match.group(1)] = match.group(2) self.print_if_debug('All outputs listed in the config, matched on available configs') diff --git a/setup.py b/setup.py index afdc426..4497ae0 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ with open('README.rst', 'r') as fh: setup( name='pi3-smart-workspace', - version='0.1.19', + version='0.1.20', packages=['pi3'], url='https://github.com/GeneralDenmark/PyOutputHandler', license='Apache-2.0 License ',