Pase la variable en el subprocesos Python
#ran in python 3.8.x
cmd = "ls"
cmd_args = "-l"
subprocess.run([cmd, cmd_args])
Fun Bee
#ran in python 3.8.x
cmd = "ls"
cmd_args = "-l"
subprocess.run([cmd, cmd_args])