input variable into python call subprocess -


i have small python snippet calls larger program (i did not write larger one).

call(['function1', file1,  file2,  'data.labels=abc, xyz']) 

the above works.

input ='abc, xyz' 

now want input "abc, xyz" variable holding value

call(['function1', file1,  file2,  'data.labels=input']) 

but not work.

how can pass variable value variable data.labels within call subprocess.

call(['function1', file1,  file2,  'data.labels=%s' % input]) 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

django - CSRF verification failed. Request aborted. CSRF cookie not set -