exec code in "globaldict"
Gerald Senarclens de Grancy
santa at sbox.tugraz.at
Fri Nov 5 00:54:21 CET 2004
I kept searching my online and offline python ressources to figure out
how to execute some code in the global dictionary. Basically I'm reading
a options file that defines some variables. I want to access those
variables throughout my whole project, so I need them in the global
dictionary. Now I think I'm plainly too stupid to figure out what to
write in place of the word "globaldict" to have my definitions in this dict.
Thanks for any kind of help.
More information about the Python-list