I have the following conf1.py file
server = { '1':'ABC' '2':'CD' } client = { '4':'jh' '5':'lk' }
Now in another python file
s=__import__('conf1') temp='server' for v in conf.temp.keys(): print v
And getting an error in which the conf object does not have the temp attribute So, how can I make it possible to interpret temp as a server.
Thanks at Advance
source share