From: Marcin Koziej Date: Mon, 3 Feb 2014 09:40:48 +0000 (+0100) Subject: add resource path to TEXINPUTS so images are included without symlink hacks X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/607ea5393e3768f8b842b613b100a2fb62074f31 add resource path to TEXINPUTS so images are included without symlink hacks --- diff --git a/librarian/pdf.py b/librarian/pdf.py index ead91be..a5c4253 100644 --- a/librarian/pdf.py +++ b/librarian/pdf.py @@ -286,6 +286,9 @@ def transform(wldoc, verbose=False, save_tex=None, save_texml=None, morefloats=N cwd = None os.chdir(temp) + if resources: + os.putenv("TEXINPUTS", "::.:%s" % resources) + if verbose: p = call(['xelatex', tex_path]) else: