tests/config.py
author Radek Brich <radek.brich@devl.cz>
Thu, 07 Mar 2013 15:42:47 +0100
changeset 74 d4306261ddfb
parent 49 08e4dfe1b0cb
permissions -rw-r--r--
Fix MyManager.

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