Browse Source

fix build with "all" songs

remotes/origin/HEAD
Romain Goffe 12 years ago
parent
commit
374b80785b
  1. 2
      songbook.py

2
songbook.py

@ -144,7 +144,7 @@ def makeTexFile(sb, library, output):
out.write(formatDefinition(name, toValue(parameters[name],value))) out.write(formatDefinition(name, toValue(parameters[name],value)))
# output songslist # output songslist
if songs == "all": if songs == "all":
songs = map(lambda x: x[6:], glob.glob(library + 'songs/*/*.sg')) songs = map(lambda x: x[len(library) + 6:], glob.glob(library + 'songs/*/*.sg'))
if len(songs) > 0: if len(songs) > 0:
out.write(formatDefinition('songslist', songslist(library, songs))) out.write(formatDefinition('songslist', songslist(library, songs)))

Loading…
Cancel
Save