From 2fe9069b8ae71819d21208bf87b6ce34fb9e512e Mon Sep 17 00:00:00 2001 From: Romain Goffe Date: Thu, 17 May 2012 14:45:20 +0200 Subject: [PATCH] windows: ensure there are no windows file separators. This fix the compilation under Windows with "songs":"all" --- songbook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/songbook.py b/songbook.py index 0b074937..59504d42 100755 --- a/songbook.py +++ b/songbook.py @@ -34,7 +34,7 @@ def matchRegexp(reg, iterable): def songslist(songs): directories = set(["img/"] + map(lambda x: "songs/" + os.path.dirname(x), songs)) - result = [ '\\input{{songs/{0}}}'.format(s.strip()) for s in songs ] + result = [ '\\input{{songs/{0}}}'.format(s.replace("\\","/").strip()) for s in songs ] return '\n'.join(result) def parseTemplate(template):