From d356b55a40a4de9136e7d180b32bc47ea8182db8 Mon Sep 17 00:00:00 2001 From: Oliverpool Date: Thu, 25 Feb 2016 17:25:16 +0100 Subject: [PATCH] Correct comment and force duplication --- patacrep/content/cd.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/patacrep/content/cd.py b/patacrep/content/cd.py index 2ef0fd10..b5c5d640 100755 --- a/patacrep/content/cd.py +++ b/patacrep/content/cd.py @@ -31,11 +31,11 @@ def parse(keyword, config, argument): If 'yaml_as_root' is not set the 'path' is added as a relative path to every path already present in config['songdir'] (which are 'songs' dir inside the datadirs). - Otherwise only the 'path' folder of the yaml file is insert as first - folder to search into. + Otherwise only the 'path' folder of the yaml file is inserted as first + folder to the `songdir` list. """ subpath = argument['path'] - old_songdir = config['_songdir'] + old_songdir = list(config['_songdir']) # force list duplication if argument.get('yaml_as_root', False): config['_songdir'].insert(0, DataSubpath(config['_songbookfile_dir'], subpath))