tests/config.py
author Radek Brich <brich.radek@ifortuna.cz>
Tue, 10 Dec 2013 11:39:57 +0100
changeset 93 b72591087495
parent 49 08e4dfe1b0cb
permissions -rw-r--r--
Change python3.2 to python3 in scripts.

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