def METHOD_NAME(filename, dll_paths):
	"""Search the given list of paths for a DLL with the given name."""
	for path in dll_paths:
		full_path = os.path.join(path, filename)
		if os.path.exists(full_path):
			return full_path
	raise IOError('DLL file %s not found in path: %s' % (
		filename, dll_paths))