Browse Source

Simplify copy

pull/207/head
Oliverpool 9 years ago
parent
commit
e007992a2e
  1. 5
      patacrep/content/cd.py

5
patacrep/content/cd.py

@ -35,10 +35,11 @@ def parse(keyword, config, argument):
folder to the `songdir` list. folder to the `songdir` list.
""" """
subpath = argument['path'] subpath = argument['path']
old_songdir = list(config['_songdir']) # force list duplication old_songdir = config['_songdir']
if argument.get('yaml_as_root', False): if argument.get('yaml_as_root', False):
config['_songdir'].insert(0, DataSubpath(config['_songbookfile_dir'], subpath)) config['_songdir'] = [DataSubpath(config['_songbookfile_dir'], subpath)]
config['_songdir'].extend(old_songdir)
else: else:
config['_songdir'] = [path.clone().join(subpath) for path in config['_songdir']] config['_songdir'] = [path.clone().join(subpath) for path in config['_songdir']]

Loading…
Cancel
Save