Skip to content

Commit

Permalink
Filter out directories when running in batch mode
Browse files Browse the repository at this point in the history
  • Loading branch information
tayden committed Apr 18, 2022
1 parent 6147af2 commit b0f3c5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion las_trx/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down

0 comments on commit b0f3c5c

Please sign in to comment.