This dynamic multifile predicate defined in module
determines the extensions considered by file_search_path/2.
Extension is the filename extension without the leading dot,
Type denotes the type as used by the
option of file_search_path/2.
Here is the initial definition of
user:prolog_file_type(Ext, prolog) :-
Ext \== pl.
user:prolog_file_type(Ext, executable) :-
Users can add extensions for Prolog source files to avoid conflicts
(for example with perl) as well as to be compatible with another
Prolog implementation. We suggest using
.pro for avoiding
conflicts with perl. Overriding the system definitions can stop
the system from finding libraries.