15.2 Built-in predicates for attaching packs
All Application Manual Name SummaryHelp

  • Documentation
    • Reference manual
      • Packs: community add-ons
        • Built-in predicates for attaching packs
          • attach_packs/0
          • attach_packs/1
          • attach_packs/2
          • pack_attach/2
    • Packages
Availability:built-in
Sourceattach_packs
Attaches all packs in subdirectories of directories that are accessible through the file search path (see absolute_file_name/3) pack. The default for this search path is given below. See file_search_path/2 for the app_data search path.
user:file_search_path(pack, app_data(pack)).

The default path may be overruled with the environment variable SWIPL_PACK_PATH. This variable must contain a list of directories separated by the OS-specific path_sep.

The predicate attach_packs/0 is called on startup of SWI-Prolog.