tests/config.py
author Radek Brich <radek.brich@devl.cz>
Wed, 23 May 2012 16:02:53 +0200
changeset 37 5b0eb4b11940
parent 22 680631f35d83
child 49 08e4dfe1b0cb
permissions -rw-r--r--
Fixes.

import sys

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


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