2.14 Automatic loading of libraries
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
      • Overview
        • Automatic loading of libraries
          • autoload_path/1
          • make_library_index/1
          • make_library_index/2
          • reload_library_index/0
    • Packages
Availability:built-in
Sourceautoload_path(+DirAlias)
Add DirAlias to the libraries that are used by the autoloader. This extends the search path autoload and reloads the library index. For example:
:- autoload_path(library(http)).

If this call appears as a directive, it is term-expanded into a clause for user:file_search_path/2 and a directive calling reload_library_index/0. This keeps source information and allows for removing this directive.