Browse Source

Documentation (#21)

pull/25/head
Louis 11 years ago
parent
commit
403ef4ce8e
  1. 7
      songbook_core/build.py

7
songbook_core/build.py

@ -142,10 +142,6 @@ class Songbook(object):
class SongbookBuilder(object): class SongbookBuilder(object):
"""Provide methods to compile a songbook.""" """Provide methods to compile a songbook."""
# Representation of the .sb songbook configuration file.
songbook = {}
# Basename of the songbook to be built.
basename = None
# if False, do not expect anything from stdin. # if False, do not expect anything from stdin.
interactive = False interactive = False
# if True, allow unsafe option, like adding the --shell-escape to pdflatex # if True, allow unsafe option, like adding the --shell-escape to pdflatex
@ -157,8 +153,11 @@ class SongbookBuilder(object):
_called_functions = {} _called_functions = {}
def __init__(self, raw_songbook, basename, logger): def __init__(self, raw_songbook, basename, logger):
# Representation of the .sb songbook configuration file.
self.songbook = Songbook(raw_songbook, basename) self.songbook = Songbook(raw_songbook, basename)
# Basename of the songbook to be built.
self.basename = basename self.basename = basename
# logging object to use
self.logger = logger self.logger = logger
def _run_once(self, function, *args, **kwargs): def _run_once(self, function, *args, **kwargs):

Loading…
Cancel
Save