class SassC::ImportHandler::FileSystemImporter

def resolve_path(path, from_import)

def resolve_path(path, from_import)
  ext = File.extname(path)
  if ['.sass', '.scss', '.css'].include?(ext)
    if from_import
      result = exactly_one(try_path("#{without_ext(path)}.import#{ext}"))
      return result unless result.nil?
    end
    return exactly_one(try_path(path))
  end
  if from_import
    result = exactly_one(try_path_with_ext("#{path}.import"))
    return result unless result.nil?
  end
  result = exactly_one(try_path_with_ext(path))
  return result unless result.nil?
  try_path_as_dir(path, from_import)
end