2.15 Packs: community add-ons
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
      • Overview
        • Packs: community add-ons
          • attach_packs/0
          • attach_packs/1
          • attach_packs/2
    • Packages
Availability:built-in
Sourceattach_packs(+Directory, +Options)
Attach all packs in subdirectories of Directory. Options is one of:
search(+Where)
Determines the order in which pack library directories are searched. Default is to add new packages at the end (last). Using first, new packages are added at the start.
duplicate(+Action)
Determines what happens if a pack with the same name is already attached. Default is warning, which prints a warning and ignores the new pack. Other options are keep, which is like warning but operates silently and replace, which detaches the old pack and attaches the new.

The predicate attach_packs/2 can be used to attach packages that are bundled with an application.