Browse Source

Remove open options as it is the default value.

remotes/origin/translate_notes
Alexandre Dupas 15 years ago
parent
commit
0a15125b07
  1. 3
      songbook.py

3
songbook.py

@ -1,4 +1,5 @@
#!/usr/bin/python #!/usr/bin/python
# -*- coding: utf-8 -*-
# #
import getopt, sys import getopt, sys
@ -52,7 +53,7 @@ def makeTexFile(songbook, output):
for song in songs: for song in songs:
out.write(' \\input{{songs/{songfile}}}\n'.format(songfile=song.strip())) out.write(' \\input{{songs/{songfile}}}\n'.format(songfile=song.strip()))
out.write('}\n') out.write('}\n')
tmpl = open("templates/"+template, 'r') tmpl = open("templates/"+template)
out.write(tmpl.read().replace("SONGBOOKNAME", name+"_index")) out.write(tmpl.read().replace("SONGBOOKNAME", name+"_index"))
tmpl.close() tmpl.close()
out.close() out.close()

Loading…
Cancel
Save