()
return SameEnvironment()
Tries to return an active Virtualenv. If there is no VIRTUAL_ENV variable
    set it will return the latest Python version installed on the system. This
    makes it possible to use as many new Python features as possible when using
    autocompletion and other functionality.

    :returns: :class:`Environment`
Tries to return an active Virtualenv. If there is no VIRTUAL_ENV variable
    set it will return the latest Python version installed on the system. This
    makes it possible to use as many new Python features as possible when using
    autocompletion and other functionality.
Tries to return an active Virtualenv . If there is no VIRTUAL_ENV variable set it will return the latest Python version installed on the system . This makes it possible to use as many new Python features as possible when using autocompletion and other functionality .
def get_default_environment():
    """
    Tries to return an active Virtualenv. If there is no VIRTUAL_ENV variable
    set it will return the latest Python version installed on the system. This
    makes it possible to use as many new Python features as possible when using
    autocompletion and other functionality.

    :returns: :class:`Environment`
    """
    virtual_env = _get_virtual_env_from_var()
    if virtual_env is not None:
        return virtual_env

    for environment in find_system_environments():
        return environment

    # If no Python Environment is found, use the environment we're already
    # using.
    return SameEnvironment()
def get_default_environment ( ) : virtual_env = _get_virtual_env_from_var ( ) if virtual_env is not None : return virtual_env for environment in find_system_environments ( ) : return environment # If no Python Environment is found, use the environment we're already # using. return SameEnvironment ( )