Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions libconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ def __getattr__(self, attr):
except KeyError:
raise AttributeError("Attribute %r not found" % attr)

def __setattr__(self, attr, value):
# Allow setting attributes via attribute access
self.__setitem__(attr, value)


class ConfigParseError(RuntimeError):
'''Exception class raised on errors reading the libconfig input'''
Expand Down