mirror of https://github.com/patacrep/patacrep.git
Louis
11 years ago
1 changed files with 16 additions and 0 deletions
@ -0,0 +1,16 @@ |
|||
#!/usr/bin/env python |
|||
# -*- coding: utf-8 -*- |
|||
|
|||
import os |
|||
|
|||
from songbook_core.content import process_content |
|||
|
|||
def parse(keyword, config, argument, contentlist): |
|||
config['songdir'] = ( |
|||
[os.path.relpath(argument)] + |
|||
[os.path.join(path, argument) for path in config['songdir']] + |
|||
config['songdir'] |
|||
) |
|||
return process_content(contentlist, config) |
|||
|
|||
CONTENT_PLUGINS = {'cwd': parse} |
Loading…
Reference in new issue