Browse Source

Arrêt de la compilation en cas d'erreur de l'appel à LaTeX

pull/3/head
Louis 11 years ago
parent
commit
213545af5d
  1. 6
      songbook/build.py

6
songbook/build.py

@ -173,7 +173,8 @@ def buildsongbook(sb, basename, library):
os.environ['TEXMFHOME'] = MOD_DIR + '/../' os.environ['TEXMFHOME'] = MOD_DIR + '/../'
# First pdflatex pass # First pdflatex pass
call(["pdflatex", "--shell-escape", texFile]) if call(["pdflatex", "--shell-escape", texFile]):
sys.exit(1)
# Make index # Make index
sxdFiles = glob.glob("%s_*.sxd" % basename) sxdFiles = glob.glob("%s_*.sxd" % basename)
@ -185,4 +186,5 @@ def buildsongbook(sb, basename, library):
indexFile.close() indexFile.close()
# Second pdflatex pass # Second pdflatex pass
call(["pdflatex", "--shell-escape", texFile]) if call(["pdflatex", "--shell-escape", texFile]):
sys.exit(1)

Loading…
Cancel
Save