

def exec_shell_cmd(args, path):
    'Execute shell command (*args* is a list of arguments) in *path*'
    process = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE, cwd=path, shell=True)
    return decode_fs_string(process.stdout.read())

dataset/ETHPy150Open winpython/winpython/winpython/utils.py exec_shell_cmd/original