# File lib/rake.rb, line 1369
1369:     def load_rakefile
1370:       here = Dir.pwd
1371:       while ! have_rakefile
1372:         Dir.chdir("..")
1373:         if Dir.pwd == here || @nosearch
1374:           fail "No Rakefile found (looking for: #{RAKEFILES.join(', ')})"
1375:         end
1376:         here = Dir.pwd
1377:       end
1378:       puts "(in #{Dir.pwd})" unless $silent
1379:       $rakefile = @rakefile
1380:       load @rakefile
1381:       load_imports
1382:     end