tests/config.py
author Radek Brich <radek.brich@devl.cz>
Tue, 14 Feb 2012 18:15:56 +0100
changeset 29 8636719a30f6
parent 22 680631f35d83
child 37 5b0eb4b11940
permissions -rw-r--r--
Add batchquery tool.

import sys

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


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