I would like to assemble commands based on input to the python script, but I am having trouble with subprocess.check_output recognizing the string. Here is an example.
str1 = "./program.sh %lf %lf" % (x0, x1)
sim_flux230 = subprocess.check_output(str1)
It keeps saying there is no such file or directory in reference to str1. How can I get subprocess to recognize the string str is holding rather than literally checking for a file called str1?