parameters: ()
return_statement: return SameEnvironment()
docstring: 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`
docstring_summary: 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.
docstring_tokens: 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 .
function: 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()
function_tokens: 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 ( )