tests/config.py
author Radek Brich <radek.brich@devl.cz>
Fri, 25 Jan 2013 17:06:54 +0100
changeset 59 65efd0c6919f
parent 49 08e4dfe1b0cb
permissions -rw-r--r--
PgBrowser: add function arguments as another level in hierarchy. PgDiff: compare function arguments one by one.

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