Well I can do this:
def main(global_config, **settings):
settings.update((key, val) for key, val in global_config.items()
if key not in settings)
...which means that this would work:
[DEFAULT]
x = 1
[app:app1]
#inherits x
x = my x #overrides x
[...]
This is what I am now doing, but slightly different.In the main(global_config, **settings):settings.update(global_config)and then if I want to override something that is in [DEFAULT] I use:[DEFAULT]x = 1[app:app1]set x = 2Using the set key overrides it in the global_conf.
I noted this in one of my earlier posts (re: set). Also, the way you're updating the settings dict with global_conf will overwrite your app config, won't it? I'm pretty sure the DEFAULT config will end up in the settings automatically anyway.