This will load the library file unless it has been already loaded. In particular, a program can ensure that a given library is loaded when it is compiled, by including an appropriate directive in the source, e.g. :- lib(lists).lib(lists) use_module(library(lists))
The UNIX environment variable ECLIPSELIBRARYPATH may also be used to specify the initial setting of the library path. The syntax is similar to the syntax of the UNIX PATH variable, i.e. a list of directory names separated by colons. The directories will be prepended to the standard library path in the given order.?- get_flag(library_path,Path), set_flag(library_path, ["/home/myuser/mylibs" | Path]).