diff options
author | Adam Coldrick <adam.coldrick@codethink.co.uk> | 2014-04-14 09:25:26 +0000 |
---|---|---|
committer | Adam Coldrick <adam.coldrick@codethink.co.uk> | 2014-04-15 09:20:27 +0000 |
commit | fa3c32475625d1bbf52c81600fa94f96dabfa246 (patch) | |
tree | 229fab6891f225b02e335d75c126ad3038e3c2f3 | |
parent | 4f64994ef899f1bcb238cba8b323a9c6d19fb517 (diff) | |
download | morph-fa3c32475625d1bbf52c81600fa94f96dabfa246.tar.gz |
Don't force the morphology name to be the basename of the .morph file
-rw-r--r-- | morphlib/morphologyfactory.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/morphlib/morphologyfactory.py b/morphlib/morphologyfactory.py index 6537c7c8..6c2497b9 100644 --- a/morphlib/morphologyfactory.py +++ b/morphlib/morphologyfactory.py @@ -99,11 +99,6 @@ class MorphologyFactory(object): raise morphlib.Error("Error parsing %s: %s" % (filename, str(e))) - if filename != morphology['name'] + '.morph': - raise morphlib.Error( - "Name %s does not match basename of morphology file %s" % - (morphology['name'], filename)) - method_name = '_check_and_tweak_%s' % morphology['kind'] if hasattr(self, method_name): method = getattr(self, method_name) |