libpath method.