Hello!
I've got this collection of python files in a directory. Each file contains a variable called 'ors' that has as its value a dictionary.
I know you can get the value of the variable in a file by typing:
>>> import filename
>>> filename.variable
What I'd like to do is open the variables in all the files and add the contents to one big dictionary.
I tried printing the values of the variables by using glob and then typing:
for filename in globbed_dir:
print filename.ors
but all I get is an error message saying there is no module called 'filename'. How can I get Python to interpret 'filename' as a variable and open all the ors's in the files?