Considering one variable "outdir", included in the command line to create a directory where I will deposit my outputs, what is the best option to call a subprocess that only accept the parameters like "-o=both" and do not permit spaces between the parameter (-d=) and the value (outdir)?
'-o=both','-m=both' and '-t=4' can be established before and I have it already included in my script.
This is the line that I used:
subprocess.call(['external_script.pl', '-d=',outdir,'-o=both','-m=both','-t=4'])
outdir.strip()or check with aifstatement before subprocess if there are spaces at the start ofoutdir?