Permalink
Browse files

Really fix #251

Python doesn't have lazy semantics :-)
  • Loading branch information...
1 parent 6c79de0 commit b7db91f7090cf91c5fcc4d5657071b4d906e96ab @tych0 tych0 committed Dec 26, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 libqtile/confreader.py
@@ -81,5 +81,8 @@ def __init__(self, fname=None, is_restart=False):
# testing.
from resources import default_config
for option in config_options:
- v = getattr(config, option, getattr(default_config, option))
+ if hasattr(config, option):
+ v = getattr(config, option)
+ else:
+ v = getattr(default_config, option)
setattr(self, option, v)

0 comments on commit b7db91f

Please sign in to comment.