Browse Source

windows: ensure there are no windows file separators.

This fix the compilation under Windows with "songs":"all"
remotes/karagrat/master
Romain Goffe 12 years ago
parent
commit
2fe9069b8a
  1. 2
      songbook.py

2
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):

Loading…
Cancel
Save