From de7d632d2110bb9cdff59df6ba9b40aba23b819d Mon Sep 17 00:00:00 2001 From: Oliverpool Date: Sun, 6 Mar 2016 18:23:59 +0100 Subject: [PATCH] Rename addsongdir content plugin --- patacrep/content/{addpath.py => addsongdir.py} | 2 +- test/test_content/sort.source | 2 +- test/test_songbook/content.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename patacrep/content/{addpath.py => addsongdir.py} (96%) 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: