Browse Source

Sort the list of all songs to be coherent with the old songbook version.

remotes/origin/translate_notes
Alexandre Dupas 15 years ago
parent
commit
f692c16128
  1. 4
      songbook.py

4
songbook.py

@ -38,7 +38,9 @@ def makeTexFile(songbook, output):
# output \songlist
if not type(songs) is list:
if songs == "all":
songs = map(lambda x: x[6:], glob.glob('songs/*/*.sg'))
l = glob.glob('songs/*/*.sg')
l.sort()
songs = map(lambda x: x[6:], l)
if len(songs) > 0:
out.write('\\newcommand{\\songslist}{\n')
dir += map(os.path.dirname, map(lambda x:"songs/"+x, songs))

Loading…
Cancel
Save