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

@ -121,7 +121,7 @@ def importData(database, filename, callback):
oldfile = ObjectMap[NewMediaID].getPath()
oldpath = os.path.dirname(oldfile)
(junk,oldext) = os.path.splitext(os.path.basename(oldfile))
ObjectMap[NewMediaID].setPath(NewMediaID + oldext)
ObjectMap[NewMediaID].setLocal(1)
if NewMediaID != OldMediaID:
newfile = os.path.join( basefile, NewMediaID + oldext )
os.rename(oldfile,newfile)