Skip to content

Commit 150affe

Browse files
committed
Pass filename to PDAL as is, don't expand the glob in Python
1 parent 72e6cb4 commit 150affe

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

pdal/pipeline.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from __future__ import annotations
22

3-
import glob
43
import json
54
import logging
65
from typing import Any, Container, Dict, Iterator, List, Optional, Sequence, Union, cast
@@ -196,13 +195,7 @@ def _parse_stages(text: str) -> Iterator[Stage]:
196195
is_reader = i == 0 or i != last
197196

198197
if is_reader:
199-
paths = glob.glob(options.get("filename", ""))
200-
if paths:
201-
del options["filename"]
202-
for path in paths:
203-
yield Reader(filename=path, **options)
204-
else:
205-
yield Reader(**options)
198+
yield Reader(**options)
206199
elif not stage_type or stage_type.startswith("writers."):
207200
yield Writer(**options)
208201
else:

0 commit comments

Comments
 (0)