Skip to content
cajhin edited this page Jan 4, 2021 · 5 revisions

INCLUDE keyword

INCLUDE another_section will replace the INCLUDE line with the content of another_section

These two .ini files result in the exact same configuration:

Without INCLUDE

[config_1]
OPTION X
REWIRE 1 A
REWIRE 2 A
COMBO xxx

[config_2]
OPTION Y
REWIRE 1 A
REWIRE 2 A

With INCLUDE

[config_1]
OPTION X
INCLUDE my_rewire
COMBO xxx

[config_2]
OPTION Y
INCLUDE my_rewire

[my_rewire]
REWIRE 1 A
REWIRE 2 A

INCLUDE is useful, if you have some common configs that you want to use in all configs.