I am creating a python script where i needed to pass 2-3 arguments in os.system(). Suppose those commands/arguments are a,b. here A should execute first then B. Is there any solution for this ?
Join the Stack Overflow Community
Stack Overflow is a community of 6.5 million programmers, just like you, helping each other.
Join them; it only takes a minute:
Sign up
Join them; it only takes a minute:
I don't really see the problem, you can just use the same commands as you would do on the command line. For instance:
Or if you want to execute the second command even though the first one failed:
|
|||||||||
|
To get the argument :
|
|||
|
argparse
module – Pax0r Dec 8 at 11:39