Burton Samograd <[EMAIL PROTECTED]> writes: > Is there a way to create a module namespace and populate it > before sourcing the file?
A reply to my own question, but I thought I would share the answer. I got it to work with the following code: import config import sys from posix import environ sys.path.insert(0, environ["HOME"]+"/.program") reload(config) I have a file in my working directory that contains all the program variables with default values called config.py, which is loaded at the start, and then the user configuration directory is inserted into the load path and then their config.py is loaded, which will then overwrite the default values. -- burton samograd kruhft .at. gmail kruhft.blogspot.com www.myspace.com/kruhft metashell.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list