|
@ -13,7 +13,7 @@ import yaml |
|
|
from patacrep import authors, content, encoding, errors, files, pkg_datapath, utils |
|
|
from patacrep import authors, content, encoding, errors, files, pkg_datapath, utils |
|
|
from patacrep.index import process_sxd |
|
|
from patacrep.index import process_sxd |
|
|
from patacrep.templates import TexBookRenderer, iter_bookoptions |
|
|
from patacrep.templates import TexBookRenderer, iter_bookoptions |
|
|
from patacrep.songs import DataSubpath, DEFAULT_CONFIG |
|
|
from patacrep.songs import DataSubpath |
|
|
|
|
|
|
|
|
LOGGER = logging.getLogger(__name__) |
|
|
LOGGER = logging.getLogger(__name__) |
|
|
EOL = "\n" |
|
|
EOL = "\n" |
|
@ -76,9 +76,7 @@ class Songbook(object): |
|
|
Arguments: |
|
|
Arguments: |
|
|
- output: a file object, in which the file will be written. |
|
|
- output: a file object, in which the file will be written. |
|
|
""" |
|
|
""" |
|
|
# Updating configuration |
|
|
config = self.config.copy() |
|
|
config = DEFAULT_CONFIG.copy() |
|
|
|
|
|
config.update(self.config) |
|
|
|
|
|
renderer = TexBookRenderer( |
|
|
renderer = TexBookRenderer( |
|
|
config['book']['template'], |
|
|
config['book']['template'], |
|
|
config['_datadir'], |
|
|
config['_datadir'], |
|
|