diff --git a/Config.py b/Config.py index 6c17bd7..f0fe73d 100644 --- a/Config.py +++ b/Config.py @@ -1,4 +1,6 @@ +import os + class Config: def __init__(self, filename): self.filename = filename diff --git a/Window.py b/Window.py index 16195c2..a0475f8 100644 --- a/Window.py +++ b/Window.py @@ -4,10 +4,12 @@ import gobject from datetime import * from AboutWindow import AboutWindow +from Config import * class Window: - def __init__(self, progName, ds): + def __init__(self, progName, ds, config): self.ds = ds + self.config = config self.shown_projects = [] self.taskStart = datetime.now() self.monday = \ diff --git a/dwtt b/dwtt index 1d9fe71..5642589 100755 --- a/dwtt +++ b/dwtt @@ -6,6 +6,7 @@ import getopt from Window import * from DataStore import * +from Config import * PROGRAM_NAME = 'dwtt' @@ -39,7 +40,8 @@ def main(argv): conf_file = dbfile + '.conf' ds = DataStore(dbfile) - w = Window(PROGRAM_NAME, ds) + config = Config(conf_file) + w = Window(PROGRAM_NAME, ds, config) w.main() if __name__ == "__main__":