summaryrefslogtreecommitdiff
path: root/morphlib/buildsystem.py
diff options
context:
space:
mode:
Diffstat (limited to 'morphlib/buildsystem.py')
-rw-r--r--morphlib/buildsystem.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/morphlib/buildsystem.py b/morphlib/buildsystem.py
index 759693d2..ba6d8998 100644
--- a/morphlib/buildsystem.py
+++ b/morphlib/buildsystem.py
@@ -36,6 +36,10 @@ class BuildSystem(object):
self.build_commands = []
self.test_commands = []
self.install_commands = []
+
+ def __getitem__(self, key):
+ key = '_'.join(key.split('-'))
+ return getattr(self, key)
def used_by_project(self, srcdir):
'''Does project at ``srcdir`` use this build system?'''