Sayth Renshaw wrote: > Is there something obvious to this I am doing wrong?
> parser.add_argument("path", nargs="+")
The "+" implicitly turns args.path into a list
> files |= set(glob.glob(args.path + '/*' + args.extension))
so the glob() argument is evaluated as
list + str + str
Try
name_pattern = "*" + args.extension
for path in args.path:
files.update(glob.glob(os.path.join(path, name_pattern)))
--
https://mail.python.org/mailman/listinfo/python-list
