summaryrefslogtreecommitdiffstats
path: root/vnftest/common/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'vnftest/common/utils.py')
-rw-r--r--vnftest/common/utils.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/vnftest/common/utils.py b/vnftest/common/utils.py
index fbc8391..ad1b2f3 100644
--- a/vnftest/common/utils.py
+++ b/vnftest/common/utils.py
@@ -424,3 +424,10 @@ def open_relative_file(path, task_path):
if e.errno == errno.ENOENT:
return open(os.path.join(task_path, path))
raise
+
+
+class dotdict(dict):
+ """dot.notation access to dictionary attributes"""
+ __getattr__ = dict.get
+ __setattr__ = dict.__setitem__
+ __delattr__ = dict.__delitem__