I have file with only bare data like: foo.py
TL = {
'aa': {'L1104205608': {'ada': {'bb': 'APC', 'ip_addr': '10.44.184.12', 'port': 2}},
'L1104205616': {'ada': {'bb': 'APC', 'ip_addr': '10.44.184.13', 'port': 3}}}}
aaa = 'bbb'
I need to import files like this, then unpack values, that are inside it only:
I do use:
imp.load_source('foo', r'<path_to_foo>\foo.py')
...and I am stuck here :( How to get an output with 'TL' and 'aaa' with their vlues?