|
@ -524,7 +524,7 @@ def obalkyView(request,resitele): |
|
|
tex = render(request,'seminar/archiv/obalky.tex', {'resitele': resitele}).content |
|
|
tex = render(request,'seminar/archiv/obalky.tex', {'resitele': resitele}).content |
|
|
|
|
|
|
|
|
tempdir = tempfile.mkdtemp() |
|
|
tempdir = tempfile.mkdtemp() |
|
|
with open(tempdir+"/obalky.tex","w") as texfile: |
|
|
with open(tempdir+"/obalky.tex","wb") as texfile: |
|
|
texfile.write(tex) |
|
|
texfile.write(tex) |
|
|
shutil.copy(os.path.join(settings.STATIC_ROOT, 'seminar/lisak.eps'),tempdir) |
|
|
shutil.copy(os.path.join(settings.STATIC_ROOT, 'seminar/lisak.eps'),tempdir) |
|
|
subprocess.call(["pdflatex","obalky.tex"],cwd = tempdir) |
|
|
subprocess.call(["pdflatex","obalky.tex"],cwd = tempdir) |
|
|