From b0f3c5ca8cb539ed56f6cd9d36c5e1b97139351b Mon Sep 17 00:00:00 2001 From: Taylor Denouden Date: Mon, 18 Apr 2022 12:51:29 -0700 Subject: [PATCH] Filter out directories when running in batch mode --- las_trx/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/las_trx/main.py b/las_trx/main.py index 5d51ba1..f98093a 100644 --- a/las_trx/main.py +++ b/las_trx/main.py @@ -201,7 +201,7 @@ def transform_config(self) -> TransformConfig: @property def input_files(self) -> list[Path]: p = Path(self.ui.lineEdit_input_file.text()) - return list(p.parent.glob(p.name)) + return [f for f in p.parent.glob(p.name) if f.is_file()] @property def output_files(self) -> list[Path]: