tests/config.py
author Radek Brich <radek.brich@devl.cz>
Wed, 24 Jul 2013 13:11:37 +0200
changeset 84 3b5dd9efba35
parent 49 08e4dfe1b0cb
permissions -rw-r--r--
Fix.

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