def clear_virtualenv_prefix():
    """
    :return: Unsets / removes / resets the virtualenv prefix
    """
    if hasattr(sys, "real_prefix"):
        del sys.real_prefix
    if hasattr(sys, "base_prefix"):
        sys.base_prefix = sys.prefix

    :return: Unsets / removes / resets the virtualenv prefix
    
st2common/st2common/util/sandboxing.py