changed glob variable name

This commit is contained in:
Ethan Weber committed 2024-01-19 19:51:54 +00:00
1 parent a7915915a8
commit cdd1d1507e
1 file changed
+2 -2
@@ -68,8 +68,8 @@ def list_images(data: Path, recursive: bool = False) -> List[Path]:
Paths to images contained in the directory
"""
allowed_exts = [".jpg", ".jpeg", ".png", ".tif", ".tiff"] + ALLOWED_RAW_EXTS
glob = "**/[!.]*" if recursive else "[!.]*"
image_paths = sorted([p for p in data.glob(glob) if p.suffix.lower() in allowed_exts])
glob_str = "**/[!.]*" if recursive else "[!.]*"
image_paths = sorted([p for p in data.glob(glob_str) if p.suffix.lower() in allowed_exts])
return image_paths