Commit 9b38aec1 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

ENH: fileOrThing accepts sequences for inputs

parent 79ecac55
......@@ -721,7 +721,15 @@ class _FileOrThing(object):
# Assumed to be an input file
else:
infile = self.__prepIn(workdir, name, val)
if isinstance(val, (list, tuple)):
infile = list(val)
for i, v in enumerate(val):
v = self.__prepIn(workdir, name, v)
if v is not None:
infile[i] = v
else:
infile = self.__prepIn(workdir, name, val)
if infile is not None:
allargs[name] = infile
......
Supports Markdown
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