tr11 / python-configuration

A Python library to load configuration parameters

Home Page:https://tr11.github.io/python-configuration/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Interpolation not performed in dictionary

chinghwayu opened this issue · comments

conf.py

var = {"a": "{var1}"}

dir/conf.py

var1 = "test"

code:

module_list = ["dir/conf.py", "conf.py"]
cfg = config(*module_list, interpolate=True)
print(cfg.var)

Result is:
{'a': '{var1}'}