I'm executing a python script
subprocess.call("/home/scripts/secondary.py", shell=True)
from inside my primary.py script situated at the same location.Now, I want to pass multiple arguments to the secondary.py. I have doubts pertaining to two things-
1)How do I pass the arguments and use them in the secondary script?
I've trying to pass them as--
import subprocess
subprocess.call("/home/scripts/secondary.py", "arg1", "arg2",shell=True)
But, having difficulties as to how do I use the passed variables.Also, I don't know if it's the correct way or not.