Why won't subprocess.run take a list of arguments?
I am running a script called mini_medsmaker.py, and in that script I am using subprocess.run to call another script called mini_mocks.py. I am using argparse to list my arguments, and this is the command I am running: subprocess.run(["python", "/path/to/mini_mocks.py", *vars(args).values()]) Whenever I run it, I get this error: Traceback (most recent call last): File "/work/mccleary_group/vassilakis.g/superbit-metacal/superbit_lensing/medsmaker/scripts/mini_medsmaker.py",… Read More Why won't subprocess.run take a list of arguments?