Skip to content

Module Packages

Eric Werner edited this page Nov 20, 2023 · 2 revisions

Module Packages aka "module sources" are collections of multiple modules.
And a module is basically a sub-directory in a package.

file structure

...
data
|_ modules
   |_ package_1
      |_ module_a
         |_ a2module.json (module configuration and meta data)
      |_ module_b
      |_ .lib (optional package library)
      |_ a2modsource.json
   |_ package_2
      ...

package libraries

All .ahk-files in a .lib directory in a package will be included. Everything else ignored.

To actually have subfolders included as well: Please include them explicitly like described in the docs: https://autohotkey.com/docs/commands/_Include.htm#Related See just above the "Related" paragraph.

That is: #Include %A_LineFile%\..\subdir\other.ahk