From 7ab9920cdcfa4cadb150a27395eb178d3efd6f30 Mon Sep 17 00:00:00 2001 From: Louis Date: Mon, 17 Feb 2014 13:49:31 +0100 Subject: [PATCH] Raffinement du commit c443321d5ea2ed7ffa519bf6f9651de95122553a --- songbook/build.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/songbook/build.py b/songbook/build.py index bf68be0f..452bd24e 100755 --- a/songbook/build.py +++ b/songbook/build.py @@ -177,7 +177,9 @@ def buildsongbook(sb, basename): # Make TeX file makeTexFile(sb, texFile) - os.environ['TEXINPUTS'] = os.pathsep + os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', 'latex') + if not os.environ.has_key('TEXINPUTS'): + os.environ['TEXINPUTS'] = '' + os.environ['TEXINPUTS'] += os.pathsep + os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', 'latex') os.environ['TEXINPUTS'] += os.pathsep + os.path.join(sb['datadir'], 'latex') # First pdflatex pass