preserve full path for photos after import

svn: r1497
This commit is contained in:
Don Allingham
2003-05-06 02:55:54 +00:00
parent 59f87c9487
commit a1374f76dc
4 changed files with 3 additions and 7 deletions

View File

@ -988,13 +988,12 @@ class GrampsImportParser(GrampsParser):
src = attrs["src"]
if src:
if src[0] != '/':
self.object.setPath("%s/%s" % (self.base,src))
self.object.setPath("%s/%s" % (self.db.getSavePath(),src))
self.object.setLocal(1)
else:
self.object.setPath(src)
self.object.setLocal(0)
def append_value(orig,val):
if orig:
return "%s, %s" % (orig,val)