# File lib/rubygems/specification.rb, line 857def add_self_to_load_pathpaths=require_paths.mapdo|path|File.joinfull_gem_path,pathend# gem directories must come after -I and ENV['RUBYLIB']insert_index=Gem.load_path_insert_indexifinsert_indexthen# gem directories must come after -I and ENV['RUBYLIB']$LOAD_PATH.insert(insert_index,*paths)else# we are probably testing in core, -I and RUBYLIB don't apply$LOAD_PATH.unshift(*paths)endend