Commit 2306f558 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

RF: Expand wildcard patterns if they are passed to imglob, instead of being

expanded by the shell.
parent af99f14e
......@@ -59,6 +59,19 @@ def imglob(paths, output=None):
imgfiles = []
# Expand any wildcard paths if provided.
# Depending on the way that imglob is
# invoked, this may not get done by the
# calling shell.
expanded = []
for path in paths:
if any(c in path for c in '*?[]'):
paths = expanded
# Build a list of all image files (both
# hdr and img and otherwise) that match
for path in paths:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment