def exec_shell_cmd(args, path):
    # print " ".join(args)
    process = subprocess.Popen(args, stdout=subprocess.PIPE,
                               stderr=subprocess.PIPE, cwd=path, shell=True)
    return decode_fs_string(process.stdout.read())
Execute shell command (*args* is a list of arguments) in *path*
dataset/ETHPy150Open winpython/winpython/winpython/utils.py/exec_shell_cmd