I have a very tricky situation (for my standards) in hand. I have a script that needs to read a script variable name from ConfigParser. For example, I need to read
self.post.id
from a .cfg file and use it as a variable in the script. How do I achieve this?
I suppose I was unclear in my query. The .cfg file looks something like:
[head]
test: me
some variable : self.post.id
This self.post.id is to be replaced at the run time, taking values from the script.