diff options
author | richard <devnull@localhost> | 2002-11-01 05:19:40 +0000 |
---|---|---|
committer | richard <devnull@localhost> | 2002-11-01 05:19:40 +0000 |
commit | 98725a72613714a7a73c4ac6d900cd8476450796 (patch) | |
tree | 193da310b1c9d5d0ffff7882cd7fe0f279c8828d /config.py | |
download | decorator-98725a72613714a7a73c4ac6d900cd8476450796.tar.gz |
Initial revision
Diffstat (limited to 'config.py')
-rw-r--r-- | config.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/config.py b/config.py new file mode 100644 index 0000000..3547cca --- /dev/null +++ b/config.py @@ -0,0 +1,13 @@ +import ConfigParser + +class Config: + ''' Read in the config and set up the vars with the correct type. + ''' + def __init__(self, configfile, name): + c = ConfigParser.ConfigParser() + c.read(configfile) + self.database = c.get(name, 'database') + self.mailhost = c.get(name, 'mailhost') + self.adminemail = c.get(name, 'adminemail') + self.url = c.get(name, 'url') + |