add initial Config class, calculate config fname

This commit is contained in:
Josh Holtrop committed 2011-02-21 23:04:01 -05:00
1 parent 15136b9c26
commit 2f9c4e7df8
2 files changed
+7

No files matched your search

+6
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
View File
@@ -37,6 +37,7 @@ def main(argv):
usage()
return 2
conf_file = dbfile + '.conf'
ds = DataStore(dbfile)
w = Window(ds)
w.main()