tests/config.py
author Radek Brich <radek.brich@devl.cz>
Fri, 04 Oct 2013 16:38:24 +0200
changeset 90 43e5d2cf4ddb
parent 49 08e4dfe1b0cb
permissions -rw-r--r--
Update runquery: Add parameter to read queries from file.

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