You can also do: settings = {} execfile('/path/to/file/myconfig.conf', settings)
myconfig.conf is a Python file. After this all variables from myconfig.conf are stored in settings dictionary. -- Ksenia -- http://mail.python.org/mailman/listinfo/python-list