module Sprockets::Resolve

def resolve_relative_path(paths, path, dirname, accept, skip_bundle)

def resolve_relative_path(paths, path, dirname, accept, skip_bundle)
  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, skip_bundle)
  else
    [nil, Set.new]
  end
end