module Lookbook::PathUtils
def determine_full_path(rel_path, search_dirs = [])
def determine_full_path(rel_path, search_dirs = []) base_path = search_dirs.detect { |p| Dir["#{p}/#{rel_path}"].first } path = Dir["#{base_path}/#{rel_path}"].first Pathname(path) if path end