tests/config.py
author Radek Brich <radek.brich@devl.cz>
Sun, 10 Mar 2013 16:14:53 +0100
changeset 76 3a41b351b122
parent 49 08e4dfe1b0cb
permissions -rw-r--r--
Port pgconsole to Python3 + GTK3.

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