add initial Config class, calculate config fname

This commit is contained in:
Josh Holtrop 2011-02-21 23:04:01 -05:00
parent 15136b9c26
commit 2f9c4e7df8
2 changed files with 7 additions and 0 deletions

6
Config.py Normal file
View File

@ -0,0 +1,6 @@
class Config:
def __init__(self, filename):
if os.path.isfile(filename):
f = open(filename, 'r')
eval(f, self)

1
dwtt
View File

@ -37,6 +37,7 @@ def main(argv):
usage()
return 2
conf_file = dbfile + '.conf'
ds = DataStore(dbfile)
w = Window(ds)
w.main()