tests/config.py
author Radek Brich <brich.radek@ifortuna.cz>
Wed, 07 May 2014 18:33:50 +0200
changeset 102 fda45bdfd68d
parent 49 08e4dfe1b0cb
permissions -rw-r--r--
Update ToolBase: Load cascade of config files, add -c parameter.

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