Path related logic should be isolated, decoupled from all other functions.
Here's how:
Merge user_config, sys_config logic from @main into into load_config
load_config is now a dictionary with original yaml data and computed lookup data. For ex,
path = config["recipe_root"] + os.sep + "templates" in load_dynamic_templates in bake.pyu
should now be as simple as config['templates_path'].
All other path related logic should be readily available as keys.
Path related logic should be isolated, decoupled from all other functions.
Here's how:
path = config["recipe_root"] + os.sep + "templates"
in load_dynamic_templates in bake.pyushould now be as simple as config['templates_path'].
All other path related logic should be readily available as keys.