tests/config.py
author Radek Brich <radek.brich@devl.cz>
Mon, 09 Dec 2013 11:39:28 +0100
changeset 91 fba99a54ec49
parent 49 08e4dfe1b0cb
permissions -rw-r--r--
Add to runquery tool: Parameters for query, output file and format for output file. Fix loopquery tool.

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