tests/config.py
author Radek Brich <brich.radek@ifortuna.cz>
Tue, 06 May 2014 18:37:41 +0200
changeset 100 d6088dba8fea
parent 49 08e4dfe1b0cb
permissions -rw-r--r--
Add pgtool wrapper for all tools. Only this script will be installed into system bin.

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