diff options
author | Adam Coldrick <adam.coldrick@codethink.co.uk> | 2014-08-08 07:59:02 +0000 |
---|---|---|
committer | Adam Coldrick <adam.coldrick@codethink.co.uk> | 2014-08-14 13:28:50 +0000 |
commit | 9e35ea90a1f2c41c3808633e76930f86da6336e5 (patch) | |
tree | 4089e408578baabc6f7e3d167107fa7db659e42a /morphlib/builder2.py | |
parent | 95c5f93d554883fdedaeb3e111e1be9f88e0045c (diff) | |
download | morph-9e35ea90a1f2c41c3808633e76930f86da6336e5.tar.gz |
morphloader: Get commands when loading morphology
Rather than having a `get_commands` method to obtain missing commands
from the build system when they are needed, get the commands when
loading a morphology.
Diffstat (limited to 'morphlib/builder2.py')
-rw-r--r-- | morphlib/builder2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/morphlib/builder2.py b/morphlib/builder2.py index d739dc13..c1a49221 100644 --- a/morphlib/builder2.py +++ b/morphlib/builder2.py @@ -405,7 +405,7 @@ class ChunkBuilder(BuilderBase): for step, in_parallel in steps: with self.build_watch(step): key = '%s-commands' % step - cmds = m.get_commands(key) + cmds = m[key] if cmds: with open(logfilepath, 'a') as log: self.app.status(msg='Running %(key)s', key=key) |