Skip to content

Commit 348325c

Browse files
Give LaTeX an absolute path just in case.
1 parent 9cba443 commit 348325c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: esp/esp/survey/templatetags/survey.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def histogram(answer_list, format='html'):
183183
'-sDEVICE=png16m', '-R96',
184184
'-sOutputFile=' + image_path, file_name])
185185
if format == 'tex':
186-
return '\includegraphics[width=%fin]{%s}' % (image_width, png_filename)
186+
return '\includegraphics[width=%fin]{%s}' % (image_width, image_path)
187187
if format == 'html':
188188
return '<img src="%s" />' % os.path.join('/media/' + HISTOGRAM_PATH +
189189
png_filename)

0 commit comments

Comments
 (0)