Apr-01-2019, 04:35 PM
I was wondering if any of you know of the way to pass multiple parameters into subprocess.Popen.
In the code below, I pass str(my_var). Is there a way to do something like str(my_var_1), str(my_var_2)?
Thank you so much! This forum is awesome!
In the code below, I pass str(my_var). Is there a way to do something like str(my_var_1), str(my_var_2)?
Thank you so much! This forum is awesome!
1 2 |
item = subprocess.Popen([ "batch_test_python_petrel_saving_Nexus.bat" , str (my_var)] , shell = True , stdout = subprocess.PIPE) |