mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 06:31:02 +00:00
15 lines
685 B
Diff
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("<<")
|
||
|
|