The Library Paths

The library path is special in that there are two methods of establishing and finding library search paths. Although file_search_path/2 is more general and more powerful, you may choose to define library_directory/1 if it is adequate for your needs.

The default clauses for library_directory/1 in the Prolog system can be seen by calling listing/[0,1], or by usint the +p library option to prolog (see too-too-prolog). They are also shown in ref-fdi-fsp-pre. To specify an additional directory to be searched before the default ones, add a goal of the form

     :- asserta(library_directory(Directory)).
to your prolog.ini file. See ref-pro for a description of prolog.ini files.