module Padrino::Reloader

def figure_path(file)


Returns true if the file is defined in our padrino root
#
def figure_path(file)
  return file if Pathname.new(file).absolute?
  $:.each do |path|
    found = File.join(path, file)
    return File.expand_path(found) if File.exist?(found)
  end
  file
end