nicetoolbox.utils.config.config_fill_placeholders

nicetoolbox.utils.config.config_fill_placeholders(config, placeholders)[source]

Replace placeholders in the given configuration data with their corresponding values.

Parameters:
  • config (dict or list) – The configuration data to be processed.

  • placeholders (dict) – A dictionary containing the placeholder values.

Returns:

The configuration data with placeholders replaced.

Return type:

dict