* src/ReadXML.py (import_data), src/WriteXML.py (export_data),
src/RelImage.py (import_media_object), src/gramps_main.py (open_example), src/plugins/Check.py (cleanup_missing_photos), src/plugins/WebPage.py (write_gallery): Change shutil.copy() calls to first call shutil.copyfile() and then try setting up bits. svn: r1652
This commit is contained in:
@@ -362,9 +362,17 @@ class IndividualPage:
|
||||
base = os.path.basename(src)
|
||||
|
||||
if self.image_dir:
|
||||
shutil.copy(src,"%s/%s/%s" % (self.dir,self.image_dir,base))
|
||||
shutil.copyfile(src,"%s/%s/%s" % (self.dir,self.image_dir,base))
|
||||
try:
|
||||
shutil.copystat(src,"%s/%s/%s" % (self.dir,self.image_dir,base))
|
||||
except:
|
||||
pass
|
||||
else:
|
||||
shutil.copy(src,"%s/%s" % (self.dir,base))
|
||||
shutil.copyfile(src,"%s/%s" % (self.dir,base))
|
||||
try:
|
||||
shutil.copystat(src,"%s/%s" % (self.dir,base))
|
||||
except:
|
||||
pass
|
||||
|
||||
self.doc.start_row()
|
||||
self.doc.start_cell("ImageCell")
|
||||
|
Reference in New Issue
Block a user