I have a python script that I need to run 8 times, with 8 different .txt
-files. I'm trying to do this with a parallel{}
-section in PowerShell.
workflow my_script{
parallel {
python bin/script.py config/file1.txt
python bin/script.py config/file2.txt
python bin/script.py config/file3.txt
python bin/script.py config/file4.txt
python bin/script.py config/file5.txt
python bin/script.py config/file6.txt
python bin/script.py config/file7.txt
python bin/script.py config/file8.txt
} }
However this does not work, I'm getting the "no such file or directory" on script.py
.
I'm already in the right directory, in fact if I do python bin/script.py config/file1.txt
this works just fine.
Calling workflow
implies that directory is changed? I don't understand why it is not running in the working directory.