# File lib/rubygems.rb, line 437
  def self.path
    @gem_path ||= nil

    unless @gem_path then
      paths = [ENV['GEM_PATH']] || [default_path]

      if defined?(APPLE_GEM_HOME) and not ENV['GEM_PATH'] then
        paths << APPLE_GEM_HOME
      end

      set_paths paths.compact.join(File::PATH_SEPARATOR)
    end

    @gem_path
  end