From 9c637e57c76c1fcbdbbb36000c2aec7ae3778cb9 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Tue, 13 May 2014 21:33:23 +0100 Subject: [PATCH] 7325: Use utility function to get full media path --- gramps/plugins/tool/check.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gramps/plugins/tool/check.py b/gramps/plugins/tool/check.py index ce9ac77cd..fddb58753 100644 --- a/gramps/plugins/tool/check.py +++ b/gramps/plugins/tool/check.py @@ -1813,10 +1813,7 @@ class CheckIntegrity(object): self.progress.step() ObjectId = handle2internal(bObjectId) obj = self.db.get_object_from_handle(ObjectId) - if os.path.isabs(obj.path): - full_path = obj.path - else: - full_path = os.path.join(self.db.get_mediapath(), obj.path) + full_path = media_path_full(self.db, obj.get_path()) new_checksum = create_checksum(full_path) if new_checksum != obj.checksum: logging.info('checksum: updating ' + obj.gramps_id)