Running subprocess won\'t handle curly braces correctly
# Python 2.7.4 import subprocess subprocess.Popen(\'ls src/*.cpp\',shell=True): src/tonemap.cpp src
shell=True runs /bin/sh that doesn't support this syntax. Specify bash explicitly:
shell=True
/bin/sh
bash
from subprocess import check_call check_call('ls src/{t,p}*.cpp', shell=True, executable='/bin/bash')