tests/config.py
author Radek Brich <brich.radek@ifortuna.cz>
Wed, 14 Dec 2011 16:29:33 +0100
changeset 23 dc2dbe872fc8
parent 22 680631f35d83
child 37 5b0eb4b11940
permissions -rw-r--r--
Add keep_open parameter to create_conn.

import sys

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


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