exec code in "globaldict"

Gerald Senarclens de Grancy santa at sbox.tugraz.at
Thu Nov 4 18:54:21 EST 2004


Hi!
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.
cheers, Gerald



More information about the Python-list mailing list