I have two dictionnaries loaded from config files, formatted like this:
{key: (value, files_name)}
With files_name: the files where i can find this value.
For example:
dict_1 = {'a': ({'b': ({'c': (1, ['file_1'])}, ['file_1'])}, ['file_1'])}
dict_2 = {'a': ({'b': ({'c': (2, ['file_2'])}, ['file_2'])}, ['file_2'])}
I want to merge them together, and make a concatenation of the files names list.
So basically, following the example above, the output should be:
{'a': ({'b': ({'c': (1, ['file_1', 'file_2'])}, ['file_1', 'file_2'])}, ['file_1', 'file_2'])}