diff --git a/Config.py b/Config.py new file mode 100644 index 0000000..f85ac7d --- /dev/null +++ b/Config.py @@ -0,0 +1,6 @@ + +class Config: + def __init__(self, filename): + if os.path.isfile(filename): + f = open(filename, 'r') + eval(f, self) diff --git a/dwtt b/dwtt index 74ba19f..238c59a 100755 --- a/dwtt +++ b/dwtt @@ -37,6 +37,7 @@ def main(argv): usage() return 2 + conf_file = dbfile + '.conf' ds = DataStore(dbfile) w = Window(ds) w.main()