Browse Source

Minor corrections

pull/20/head
Luthaf 11 years ago
parent
commit
4a99088923
  1. 5
      songbook/build.py

5
songbook/build.py

@ -142,7 +142,7 @@ def makeTexFile(sb, library, output, core_dir):
# output template # output template
commentPattern = re.compile(r"^\s*%") commentPattern = re.compile(r"^\s*%")
f = open(template_dir+template) with open(template_dir+template) as f:
content = [ line for line in f if not commentPattern.match(line) ] content = [ line for line in f if not commentPattern.match(line) ]
for index, line in enumerate(content): for index, line in enumerate(content):
@ -153,9 +153,7 @@ def makeTexFile(sb, library, output, core_dir):
line = line.replace("\\getLibraryLilypondDirectory", core_dir + "lilypond/") line = line.replace("\\getLibraryLilypondDirectory", core_dir + "lilypond/")
content[index] = line content[index] = line
f.close()
out.write(''.join(content)) out.write(''.join(content))
out.close() out.close()
def buildsongbook(sb, basename, library): def buildsongbook(sb, basename, library):
@ -172,7 +170,6 @@ def buildsongbook(sb, basename, library):
CORE_DIR = MOD_DIR + '/../' CORE_DIR = MOD_DIR + '/../'
texFile = basename + ".tex" texFile = basename + ".tex"
pdfFile = basename + ".pdf"
# Make TeX file # Make TeX file
makeTexFile(sb, library, texFile, CORE_DIR) makeTexFile(sb, library, texFile, CORE_DIR)

Loading…
Cancel
Save