tests/config.py
author Radek Brich <radek.brich@devl.cz>
Fri, 13 Jan 2012 15:49:24 +0100
changeset 26 7f219da7ab71
parent 22 680631f35d83
child 37 5b0eb4b11940
permissions -rw-r--r--
Add logging mechanism for notices from postgres server. Rename SQL log to "pgmanager_sql".

import sys

sys.path.insert(0, '..')


class Config(dict):
    def __init__(self, fname):
        data = open(fname).read()
        exec(data, dict(), self)