def python_query(cmd, path):
    """Execute Python command using the Python interpreter located in *path*"""
    return exec_shell_cmd('python -c "%s"' % cmd, path).splitlines()[0]
dataset/ETHPy150Open winpython/winpython/winpython/utils.py/python_query/original