def get_sandbox_python_binary_path(pack=None):
    """
    Return path to the Python binary for the provided pack.
    :param pack: Pack name.
    :type pack: ``str``
    """
    system_base_path = cfg.CONF.system.base_path
    virtualenv_path = os.path.join(system_base_path, "virtualenvs", pack)

    if pack in SYSTEM_PACK_NAMES:
        # Use system python for "packs" and "core" actions
        python_path = sys.executable
    else:
        python_path = os.path.join(virtualenv_path, "bin/python")

    return python_path

    Return path to the Python binary for the provided pack.
    :param pack: Pack name.
    :type pack: ``str``
    
st2common/st2common/util/sandboxing.py