From 6aba989d748cf239d62bf61a89002a07626cc087 Mon Sep 17 00:00:00 2001 From: Alex Bilger Date: Mon, 19 Jan 2026 10:54:32 +0100 Subject: [PATCH 1/2] error message if directory not exist --- tools/RegressionSceneList.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/RegressionSceneList.py b/tools/RegressionSceneList.py index 3ae6a5f..958dd2d 100644 --- a/tools/RegressionSceneList.py +++ b/tools/RegressionSceneList.py @@ -47,6 +47,12 @@ def process_file(self): if count == 0: self.ref_dir_path = os.path.join(self.file_dir, values[0]) self.ref_dir_path = os.path.abspath(self.ref_dir_path) + + if not os.path.isdir(self.ref_dir_path): + print(f'Error: Reference directory mentioned by file \'{self.file_path}\' does not exist: {self.ref_dir_path}') + return + + print(f'Reference directory mentioned by file \'{self.file_path}\': {self.ref_dir_path}') count = count + 1 continue From 87cfec62d1d148d123a3efdf3085f90e1c82c551 Mon Sep 17 00:00:00 2001 From: Alex Bilger Date: Mon, 19 Jan 2026 16:24:30 +0100 Subject: [PATCH 2/2] print only if verbose Co-authored-by: erik pernod --- tools/RegressionSceneList.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/RegressionSceneList.py b/tools/RegressionSceneList.py index 958dd2d..a2cff1d 100644 --- a/tools/RegressionSceneList.py +++ b/tools/RegressionSceneList.py @@ -52,7 +52,8 @@ def process_file(self): print(f'Error: Reference directory mentioned by file \'{self.file_path}\' does not exist: {self.ref_dir_path}') return - print(f'Reference directory mentioned by file \'{self.file_path}\': {self.ref_dir_path}') + if self.verbose: + print(f'Reference directory mentioned by file \'{self.file_path}\': {self.ref_dir_path}') count = count + 1 continue