mirror of https://github.com/patacrep/patacrep.git
Engine for LaTeX songbooks
http://www.patacrep.com
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
429 B
16 lines
429 B
#!/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}
|
|
|