summaryrefslogtreecommitdiff
path: root/morphlib/morphologyfactory.py
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2014-06-17 16:36:07 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2014-06-19 16:21:37 +0000
commitd9bd0a5781b30663da240e8c8152ffb4843db2ca (patch)
treed0074f64059b3d134b446aec14bb8b501822ed39 /morphlib/morphologyfactory.py
parent7b721a81d6fe695f1bae86d43d65d04c971707e7 (diff)
downloadmorph-d9bd0a5781b30663da240e8c8152ffb4843db2ca.tar.gz
Use exact filenames to refer to morphology files
Rather than repeatedly stripping and appending an optional .morph extension morphology names, instead always use the file path of the morphology relative to the definitions repository. This is an inversion of the previous logic, which would strip the .morph extension and use the "name" internally. The exception to this rule of always using the filename, is that `morph edit CHUNK` uses the name of the morphology as-defined in the stratum. This is based off Adam Coldrick's inital patch, but this version will allow the old style of providing the "name" by converting it into a path if it does not have either a / or a . in it. An unfortunate consequence of this change is that the show-dependencies command's output changed, so the test needed updating.
Diffstat (limited to 'morphlib/morphologyfactory.py')
0 files changed, 0 insertions, 0 deletions