summaryrefslogtreecommitdiffstats
path: root/py3status/__init__.py
diff options
context:
space:
mode:
authorUltrabug <ultrabug@gentoo.org>2015-02-10 19:38:02 +0100
committerUltrabug <ultrabug@gentoo.org>2015-02-10 19:38:02 +0100
commiteddf98747526825178bbf768c2979e28b34f9ef0 (patch)
treec46c45deda47f6d6af9b0ffe424da7e84a19ac64 /py3status/__init__.py
parent3fd35ed8f05104abbe2e369a88b34f0bce6d4dfe (diff)
make sure we have an empty config for every requested module on the order list
Diffstat (limited to 'py3status/__init__.py')
-rwxr-xr-xpy3status/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/py3status/__init__.py b/py3status/__init__.py
index f72d008..65f3d2f 100755
--- a/py3status/__init__.py
+++ b/py3status/__init__.py
@@ -227,6 +227,10 @@ class I3status(Thread):
config[section_name].append(value)
line = '}'
+ # create an empty config for this module
+ if value not in config:
+ config[value] = {}
+
# detect internal modules to be loaded dynamically
if not self.valid_config_param(value):
config['py3_modules'].append(value)