tests/config.py
author Radek Brich <radek.brich@devl.cz>
Thu, 21 Mar 2013 17:40:11 +0100
changeset 80 b830c6f7b30a
parent 49 08e4dfe1b0cb
permissions -rw-r--r--
PgManager: add support for str, repr of RowDict.

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