tests/config.py
author Radek Brich <radek.brich@devl.cz>
Fri, 17 Aug 2012 11:07:22 +0200
changeset 40 922d7fb63384
parent 37 5b0eb4b11940
child 49 08e4dfe1b0cb
permissions -rw-r--r--
Add listserial tool. PgBrowser: Add list_sequences.

import sys

sys.path.insert(0, '..')


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