class Bundler::Settings

def path

@local_config["BUNDLE_PATH"] should be prioritized over ENV["BUNDLE_PATH"]
def path
  key  = key_for(:path)
  path = ENV[key] || @global_config[key]
  return path if path && !@local_config.key?(key)
  if path = self[:path]
    "#{path}/#{Bundler.ruby_scope}"
  else
    Bundler.rubygems.gem_dir
  end
end