# File lib/rake.rb, line 2320 2320: def find_rakefile_location 2321: here = Dir.pwd 2322: while ! (fn = have_rakefile) 2323: Dir.chdir("..") 2324: if Dir.pwd == here || options.nosearch 2325: return nil 2326: end 2327: here = Dir.pwd 2328: end 2329: [fn, here] 2330: ensure 2331: Dir.chdir(Rake.original_dir) 2332: end