Passing a pathlib.Path object as the filenames parameter raises some error:
Traceback (most recent call last):
File "/home/stefan/temp/run.py", line 57, in <module>
print(reader.decode(path))
File "/home/stefan/temp/venv/lib/python3.9/site-packages/zxing/__init__.py", line 80, in decode
for fn_or_im in filenames:
TypeError: 'PosixPath' object is not iterable
Passing a
pathlib.Path
object as thefilenames
parameter raises some error:https://github.com/dlenski/python-zxing/blob/ea517d0a7326b12a8a7492d3a0c73513c46a6ef5/zxing/__init__.py#L72-L76 seems to be incomplete and probably should check for the inverse, id est for known iterables.