tests/config.py
author Radek Brich <brich.radek@ifortuna.cz>
Tue, 29 Apr 2014 17:50:15 +0200
changeset 98 024299702087
parent 49 08e4dfe1b0cb
permissions -rw-r--r--
Update batchcopy: When target record exists, allow to ignore / update the error (--dst-exists parameter).

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