Use filename instead of URI for XML parser (works on Windows and Linux)

svn: r6215
This commit is contained in:
Brian Matherly
2006-03-29 02:25:04 +00:00
parent 9dd96871ff
commit ae7296cb25
8 changed files with 20 additions and 13 deletions

View File

@@ -1648,11 +1648,11 @@ try:
parser = make_parser()
gspath = const.template_dir
parser.setContentHandler(TemplateParser(_template_map,gspath))
parser.parse("file://%s/templates.xml" % gspath)
parser.parse("%s/templates.xml" % gspath)
parser = make_parser()
gspath = os.path.expanduser("~/.gramps/templates")
parser.setContentHandler(TemplateParser(_template_map,gspath))
parser.parse("file://%s/templates.xml" % gspath)
parser.parse("%s/templates.xml" % gspath)
except (IOError,OSError,SAXParseException):
pass