module Sprockets::Resolve

def resolve_relative_path(paths, path, dirname, accept)

def resolve_relative_path(paths, path, dirname, accept)
  filename = File.expand_path(path, dirname)
  load_path, _ = paths_split(paths, dirname)
  if load_path && logical_path = split_subpath(load_path, filename)
    resolve_logical_path([load_path], logical_path, accept)
  else
    return nil, nil, Set.new
  end
end