# File lib/rake.rb, line 1818
1818:     def load_rakefile
1819:       here = Dir.pwd
1820:       while ! have_rakefile
1821:         Dir.chdir("..")
1822:         if Dir.pwd == here || options.nosearch
1823:           fail "No Rakefile found (looking for: #{RAKEFILES.join(', ')})"
1824:         end
1825:         here = Dir.pwd
1826:       end
1827:       puts "(in #{Dir.pwd})" unless options.silent
1828:       $rakefile = @rakefile
1829:       load File.expand_path(@rakefile) if @rakefile != ''
1830:       options.rakelib.each do |rlib|
1831:         Dir["#{rlib}/*.rake"].each do |name| add_import name end
1832:       end
1833:       load_imports
1834:     end