Fixes problem if you have a number in your output name

This commit is contained in:
generaldenmark
2020-11-22 18:51:28 +01:00
parent ce78dd2e7c
commit 4a9f520433
2 changed files with 3 additions and 3 deletions

View File

@@ -38,8 +38,8 @@ class WorkSpacer:
self.config = self.i3.get_config().__dict__['config'] self.config = self.i3.get_config().__dict__['config']
config_outputs = {} config_outputs = {}
for matchNo, match in enumerate( for matchNo, match in enumerate(
re.finditer(r'set (\$[a-zA-Z]+) (' + re.finditer(r'set (\$[a-zA-Z0-9]+) (' + names_for_outputs + ')',
names_for_outputs + ')', self.config, re.MULTILINE), start=1 self.config, re.MULTILINE), start=1
): ):
config_outputs[match.group(1)] = match.group(2) config_outputs[match.group(1)] = match.group(2)
self.print_if_debug('All outputs listed in the config, matched on available configs') self.print_if_debug('All outputs listed in the config, matched on available configs')

View File

@@ -4,7 +4,7 @@ with open('README.rst', 'r') as fh:
setup( setup(
name='pi3-smart-workspace', name='pi3-smart-workspace',
version='0.1.19', version='0.1.20',
packages=['pi3'], packages=['pi3'],
url='https://github.com/GeneralDenmark/PyOutputHandler', url='https://github.com/GeneralDenmark/PyOutputHandler',
license='Apache-2.0 License ', license='Apache-2.0 License ',