tests/config.py
author Radek Brich <radek.brich@devl.cz>
Thu, 15 Dec 2011 18:21:41 +0100
changeset 24 5664afa530e5
parent 22 680631f35d83
child 37 5b0eb4b11940
permissions -rw-r--r--
PgManager: Add partial support for multiprocessing.

import sys

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


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