Implement lazy config loading
CrsiX opened this issue · comments
Crsi commented
Loading the configuration during the program startup (with import
of the module config
) makes the program unable to run when the config file is malformed or certain keys are not present. Loading the configuration file later (during the loading phases in main.py
for example) and combining this with #75 makes it very handy for the user to tweak configurations as it allows to accurately tell where something isn't correct.
Crsi commented
This issue will be closed. It doesn't make sense to force lazy config loading when a malformed or missing config file crashes/impacts the program at a later point, possibly long after startup.