INNER CODE UNIT · Python
makepipeline
theyosh/TerrariumPI · contrib/pipes/__init__.py:181
def makepipeline(self, infile, outfile):
cmd = makepipeline(infile, self.steps, outfile)
if self.debugging:
print(cmd)
cmd = "set -x; " + cmd
return cmd
def makepipeline(infile, steps, outfile):
# Build a list with for each command:
# [input filename or '', command string, kind, output filename or '']
list = []
for cmd, kind in steps:
list.append(["", cmd, kind, ""])
#
# Make sure there is at least one step
#