From aa4d24075f287b9b3255be08b1bafc390a76fd8f Mon Sep 17 00:00:00 2001 From: Frederik Gelder Date: Sat, 13 May 2017 00:47:53 +0200 Subject: [PATCH] replaced shutil.copyfile with io.copy Former-commit-id: 5793a98daadd113cbf0da1f4a7ec7ff685607895 --- scripts/resize.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/resize.py b/scripts/resize.py index 573872c5..0eb0dc07 100644 --- a/scripts/resize.py +++ b/scripts/resize.py @@ -8,7 +8,6 @@ from opendm import log from opendm import system from opendm import io from opendm import types -from shutil import copyfile def resize(src_dir, target_dir, resize_to, rerun_cell, photo): @@ -68,7 +67,7 @@ def no_resize(src_dir,target_dir,rerun_cell,photo): if not io.file_exists(new_path_file) or rerun_cell: img = cv2.imread(path_file) - copyfile(path_file, new_path_file) + io.copy(path_file, new_path_file) photo.path_file = new_path_file photo.width = img.shape[0] photo.height = img.shape[1]