else:
cfg['open_application'] = 'yes'
-
# =====================================================================
# Load product config files in PRODUCTS section
products_cfg = src.pyconf.Config()
for rule in self.get_command_line_overrides(options, ["USER"]):
exec('cfg.' + rule) # this cannot be factorize because of the exec
+ # remove application products "blacklisted" in rm_products field
+ if "APPLICATION" in cfg and "rm_products" in cfg.APPLICATION:
+ for prod_to_remove in cfg.APPLICATION.rm_products:
+ cfg.APPLICATION.products.__delitem__(prod_to_remove)
return cfg
def set_user_config_file(self, config):