module modules.tf
The tweakstreet/modules
provides runtime information about modules. Its primary use is
to allow external modules to detect their own path.
library modules
The modules library contains functions that provide information about tweakflow modules at runtime.
__file
() -> string
Returns the name of the module calling the function. For external modules, this is a file name.
> modules.__file()
"/path/to/file.tf"
__dir
() -> string
Returns the directory of the module calling the function.
> modules.__dir()
"/path/to"