From ce9001048f62eeb089504d003fc1307ab86b400f Mon Sep 17 00:00:00 2001 From: Louis Date: Mon, 15 Apr 2013 22:48:06 +0200 Subject: [PATCH] =?UTF-8?q?Correction=20de=20bug=20:=20la=20cr=C3=A9ation?= =?UTF-8?q?=20d'index=20compilait=20plus=20de=20fichiers=20que=20n=C3=A9ce?= =?UTF-8?q?ssaire?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- songbook.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/songbook.py b/songbook.py index 6b3d711b..1ce076a4 100755 --- a/songbook.py +++ b/songbook.py @@ -8,6 +8,7 @@ import locale import platform import shutil import json +import glob import re from subprocess import call from tools import recursiveFind @@ -320,7 +321,7 @@ def main(): call(["pdflatex", texFile]) # Make index - sxdFiles = recursiveFind(".", basename + "*.sxd") + sxdFiles = glob.glob("%s_*.sxd" % basename) print sxdFiles for sxdFile in sxdFiles: print "processing " + sxdFile