ini files do not support variables or import ini files by default.
Since ini is no official standard, ini files are parsed by programming languages.
So you can use the variables parsing syntax while using variables from ini files.
Suppose you have an ini file that contains the hostname and port keys.
database.ini:
[host]
name = "localhost"
port = "5421"
You want to use the keys of these files in another file called settings.ini.
[mysql]
connection = "${host:name}:${host:port}"
Is it possible to refer variable in another ini file?
Generally, It is not possible, Based on the programming language that you parse ini the file, It is possible.
ini file is not standard format and has no official support for variables.
in Python, ConfigParser is supported to read variables as interpolation syntax.
parsing the ini files, It replaces and substitutes the variable with values