Nested variable substitution not working
kennethrithvik opened this issue · 2 comments
kennethrithvik commented
base.conf
hello="world"
hello1=${hello}
derived.conf
test={include "base.conf"}
this does not resolve the hello1 in base.conf and throws error. This works in HOCON
Cannot resolve variable ${hello}
whisust commented
Same problem here,
base.conf
service = api
service = ${ENV_SERVICE}
derived.conf
include "base.conf"
With files in the same directory.
>>> file_path = os.path.join... # path to file, correctly resolved
>>> hocon_config = pyhocon.ConfigFactory.parse_file(file_path)
>>> hocon_config.history['service']
xafilox commented
I have the same problem