module Middleman
def setup_load_paths
def setup_load_paths @_is_setup ||= begin # Only look for config.rb if MM_ROOT isn't set if !ENV['MM_ROOT'] && (found_path = findup('config.rb')) ENV['MM_ROOT'] = found_path end # If we've found the root, try to setup Bundler setup_bundler if ENV['MM_ROOT'] true end end