I have a script, lets say "foo.py", which depends on some file, let's say "dep.par", and I would call these as
python foo.py --parameters=dep.par
If foo.py writes only one output file, "bar.dat", I would say:
env=Environment()
env.Command("bar.dat", "dep.par", "python foo.py --parameters=dep.par")
However, I need the case where foo.py outputs more than one file, let's say "bar1.dat, bar2.dat, ..., barN.dat".
I'm at a loss, any help would be appreciated, thanks.
The target (and/or source) can be a list of targets as follows:
env=Environment()
env.Command(["bar1.dat", "bar2.dat"], "dep.par", "python foo.py --parameters=dep.par")