set search root path & writable path

What's the meaning of this function?