From 7e8092c30c074663e481d77f878d9e0cfbb02ae6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=C3=A1=C5=A1=20Havelka?= Date: Tue, 12 Nov 2024 19:32:19 +0100 Subject: [PATCH] tex -> tex_prikaz --- various/views/generic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/various/views/generic.py b/various/views/generic.py index eac8c43a..98c6b880 100644 --- a/various/views/generic.py +++ b/various/views/generic.py @@ -89,7 +89,7 @@ class TeXResponseMixin: nebo jinĂ˝ seznam absolutnĂ­ch cest). """ dalsi_potrebne_soubory = [] - tex = "pdflatex" + tex_prikaz = "pdflatex" def render_to_response(self, context, **response_kwargs): zdrojak = render_to_string(self.get_template_names(), context) @@ -100,7 +100,7 @@ class TeXResponseMixin: texfile.write(zdrojak) for file in self.dalsi_potrebne_soubory: shutil.copy(file, tempdir) - subprocess.call([self.tex, "main.tex"], cwd=tempdir, stdout=subprocess.DEVNULL) + subprocess.call([self.tex_prikaz, "main.tex"], cwd=tempdir, stdout=subprocess.DEVNULL) with open(tempdir / "main.pdf", "rb") as pdffile: response = HttpResponse(pdffile.read(), content_type='application/pdf', **response_kwargs)