From 19c3f08359eeab732fc616d779abc2bc42c73de9 Mon Sep 17 00:00:00 2001 From: JEONG HYEONJIN <38728285+demul@users.noreply.github.com> Date: Tue, 25 May 2021 14:47:29 +0900 Subject: [PATCH] Fix path setting bug. Function 'get_image_file_path_of_frame' in Script 'core/nvdu_data.py' doesn't work, because it's path setting operation is somewhat errorous. Fix it to work correctly. --- nvdu/core/nvdu_data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvdu/core/nvdu_data.py b/nvdu/core/nvdu_data.py index e717740..1d7e121 100644 --- a/nvdu/core/nvdu_data.py +++ b/nvdu/core/nvdu_data.py @@ -175,10 +175,10 @@ def scan(self): return self._frame_count def get_image_file_path_of_frame(self, in_frame_name): - for existing_file in glob.glob(in_frame_name + '*'): + for existing_file in glob.glob(path.join(self._dataset_dir, in_frame_name + '*')): for name_filter in self._img_name_filters: if fnmatch.fnmatch(existing_file, name_filter): - return path.join(self._dataset_dir, existing_file) + return existing_file raise Exception('File not found: {}.*'.format(in_frame_name))