# Modules configuration

These configuration items are used to specify directory paths for the modules that Caplin Transformer uses to transform data.

Each module consists of: a shared library file (`<module-name>.so` on Linux, or `<module-name>.dll` on Windows) and a configuration file (`<module-name>.conf`).

## modules-conf-dir

`modules-conf-dir` specifies the directory where the module configuration files (`<module-name>.conf`) are kept.

The directory path can contain the parameters `%r` and `%a` At run time, `%r` is replaced by the root directory ([`application-root`](../datasource/datasource-run-time-environment-configuration.md#application-root)) under which the Transformer runs, and `%a` is replaced by the Transformer’s DataSource [`application-name`](../datasource/datasource-run-time-environment-configuration.md#application-name).

**Syntax:** `modules-conf-dir <directory-path>`

**Type:** string

**Default value:** `/%r/etc`

## modules-dir

`modules-dir` specifies the directory where the module library files (`<module-name>.conf` or `<module-name>.dll`) are kept.

The directory path can contain the parameters `%r` and `%a` At run time, `%r` is replaced by the root directory ([`application-root`](../datasource/datasource-run-time-environment-configuration.md#application-root)) under which the Transformer runs, and `%a` is replaced by the Transformer’s DataSource [`application-name`](../datasource/datasource-run-time-environment-configuration.md#application-name).

**Syntax:** `modules-dir <directory-path>`

**Type:** string

**Default value:** `/%r/lib`
