Commit 31172d54 authored by Michal Čihař's avatar Michal Čihař

Correct location of widget image (issue #72)

parent 25fd929c
...@@ -10,6 +10,7 @@ import json ...@@ -10,6 +10,7 @@ import json
import logging import logging
import threading import threading
import cairo import cairo
import os.path
logger = logging.getLogger('weblate') logger = logging.getLogger('weblate')
...@@ -102,7 +103,9 @@ def widget_287(request, project): ...@@ -102,7 +103,9 @@ def widget_287(request, project):
response = HttpResponse(mimetype='image/png') response = HttpResponse(mimetype='image/png')
# Background 287 x 66, logo 64 px # Background 287 x 66, logo 64 px
surface = cairo.ImageSurface.create_from_png('/home/nijel/work/weblate/graphics/weblate-widget.png') surface = cairo.ImageSurface.create_from_png(
os.path.join(settings.WEB_ROOT, 'media', 'weblate-widget.png')
)
ctx = cairo.Context(surface) ctx = cairo.Context(surface)
# Setup # Setup
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment