diff --git a/patacrep/content/addpath.py b/patacrep/content/addsongdir.py similarity index 96% rename from patacrep/content/addpath.py rename to patacrep/content/addsongdir.py index 88414d09..6554ccb0 100755 --- a/patacrep/content/addpath.py +++ b/patacrep/content/addsongdir.py @@ -37,4 +37,4 @@ def parse(keyword, config, argument): config['_songdir'] = old_songdir return processed_content -CONTENT_PLUGINS = {'addpath': parse} +CONTENT_PLUGINS = {'addsongdir': parse} diff --git a/test/test_content/sort.source b/test/test_content/sort.source index 707efd08..4e523a7b 100644 --- a/test/test_content/sort.source +++ b/test/test_content/sort.source @@ -1,4 +1,4 @@ -- addpath: +- addsongdir: path: "datadir_sort" content: - section: diff --git a/test/test_songbook/content.yaml b/test/test_songbook/content.yaml index 15ce93fa..222e7954 100644 --- a/test/test_songbook/content.yaml +++ b/test/test_songbook/content.yaml @@ -11,7 +11,7 @@ content: - section: Test of section - sort: - songsection: Test of song section - - addpath: + - addsongdir: # relative to yaml songfile path: content_datadir/content content: