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
432 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}