In my main() function I open a config file:
cfg = {}
execfile("config.conf", cfg)
config.conf looks like this:
x = 10
Later on, I use cfg[x], which gives me NameError: global name 'x' is not defined.
I took the example from here, how I use it, looks correctly to me.
Why do I get that error?