I\'ve a python script that has to launch a shell command for every file in a dir:
import os files = os.listdir(\".\") for f in files: os.execlp(\"myscri
this worked for me fine!
shell_command = "ls -l" subprocess.call(shell_command.split())