From 374b80785be948d6fb3745d03e3f8daed7c90cad Mon Sep 17 00:00:00 2001 From: Romain Goffe Date: Tue, 29 Jan 2013 21:16:02 +0100 Subject: [PATCH] fix build with "all" songs --- songbook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/songbook.py b/songbook.py index 0171e33a..d0a42c6e 100755 --- a/songbook.py +++ b/songbook.py @@ -144,7 +144,7 @@ def makeTexFile(sb, library, output): out.write(formatDefinition(name, toValue(parameters[name],value))) # output songslist 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: out.write(formatDefinition('songslist', songslist(library, songs)))