1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-30 01:20:40 +00:00
nixpkgs/pkgs/applications/misc/pytrainer/pytrainer-webkit.patch
2015-01-18 13:34:02 +01:00

15 lines
685 B
Diff

diff -Nurp pytrainer-1.10.0-orig/pytrainer/extensions/mapviewer.py pytrainer-1.10.0/pytrainer/extensions/mapviewer.py
--- pytrainer-1.10.0-orig/pytrainer/extensions/mapviewer.py 2013-03-31 12:28:29.000000000 +0200
+++ pytrainer-1.10.0/pytrainer/extensions/mapviewer.py 2014-12-22 11:44:44.367032126 +0100
@@ -46,7 +46,9 @@ class MapViewer:
logging.debug(">>")
if htmlfile is None:
htmlfile = self.createErrorHtml()
- self.wkview.load_uri("file://%s" % (htmlfile))
+ content = open(htmlfile, 'r').read()
+ self.wkview.load_string(content, 'text/html', 'UTF-8', 'file:///')
+ #self.wkview.load_uri("file://%s" % (htmlfile))
#self.box.show_all()
logging.debug("<<")