diff --git a/gramps/src/GenericFilter.py b/gramps/src/GenericFilter.py index 449019cc1..61d373f49 100644 --- a/gramps/src/GenericFilter.py +++ b/gramps/src/GenericFilter.py @@ -715,7 +715,7 @@ class GenericFilterList: try: parser = make_parser() parser.setContentHandler(FilterParser(self)) - parser.parse(self.file) + parser.parse('file://' + self.file) except (IOError,OSError,SAXParseException): pass diff --git a/gramps/src/Report.py b/gramps/src/Report.py index c0315e954..97d8be28f 100644 --- a/gramps/src/Report.py +++ b/gramps/src/Report.py @@ -1077,11 +1077,11 @@ try: parser = make_parser() path = const.template_dir parser.setContentHandler(TemplateParser(_template_map,path)) - parser.parse("%s/templates.xml" % path) + parser.parse("file://%s/templates.xml" % path) parser = make_parser() path = os.path.expanduser("~/.gramps/templates") parser.setContentHandler(TemplateParser(_template_map,path)) - parser.parse("%s/templates.xml" % path) + parser.parse("file://%s/templates.xml" % path) except (IOError,OSError,SAXParseException): pass