fix xml parsing path

svn: r6628
This commit is contained in:
Don Allingham
2006-05-12 17:20:19 +00:00
parent 05f3bd4b47
commit 63beadfa2d
4 changed files with 45 additions and 2 deletions

View File

@@ -306,7 +306,7 @@ class BookList:
"""
self.bookmap = {}
self.file = os.path.join('file:',const.home_dir,filename)
self.file = os.path.join(const.home_dir,filename)
self.parse()
def delete_book(self,name):
@@ -391,7 +391,7 @@ class BookList:
try:
p = make_parser()
p.setContentHandler(BookParser(self))
p.parse(self.file)
p.parse("file://" + self.file)
except (IOError,OSError,SAXParseException):
pass