summaryrefslogtreecommitdiff
path: root/morphlib/morphologyfactory.py
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2014-06-17 16:09:23 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2014-06-19 16:12:27 +0000
commit7b721a81d6fe695f1bae86d43d65d04c971707e7 (patch)
tree6835f50aed317231f84fcf51cc2afca44c805628 /morphlib/morphologyfactory.py
parent4af4ff9e013680de3424d0538ddfbf4ce9996f0e (diff)
downloadmorph-7b721a81d6fe695f1bae86d43d65d04c971707e7.tar.gz
Don't assume morphologies end in .morph
We occasionally need to load every morphology in the repository, e.g. morph edit needs to change every morphology that references that chunk. We used to do this by loading everything that ended in `.morph`, but if we're moving to allowing morphologies to have arbitrary filenames, there's no suitable metric other than "this file will successfully validate as a morphology". So, the morphologyfinder module is no longer appropriate, and the responsibility for working out what is a valid morphology has been shifted to the SystemBranchDirectory class, which is used to having to load all the morphologies.
Diffstat (limited to 'morphlib/morphologyfactory.py')
0 files changed, 0 insertions, 0 deletions