From: Alexandr Popov Date: Sat, 28 Mar 2009 22:42:10 +0000 (+0300) Subject: fixed problem with show main window - fixed src/config.py X-Git-Url: https://vcs.maemo.org/git/?a=commitdiff_plain;h=1f6f994da13358376707695b8fb721d211ce1af0;p=findit fixed problem with show main window - fixed src/config.py --- diff --git a/src/config.py b/src/config.py index b2dab48..2250820 100644 --- a/src/config.py +++ b/src/config.py @@ -5,12 +5,16 @@ import gtk class Config_Control(object): + def __init__(self): - config = Config_Abstraction('findit.cfg') + self.config = Config_Abstraction('findit.cfg') conf_ui = Config_Presentation() - + + def get(self, param): + return self.config.get_val(param) class Config_Abstraction(object): + def __init__(self, config_file): self.load_config(config_file) @@ -23,7 +27,7 @@ class Config_Abstraction(object): def load_config(self, config_file): # Здесь планируется загрузка конфига из файла - пока так присваивается self.conf = {} - self.conf['default_start_dir'] = '/home/' + self.conf['default_start_dir'] = '/home/alex/Desktop/python/test/' self.conf['default_count'] = 10 self.conf['ignore_dir_list'] = ['/dev', '/proc', '/sys', '/mnt']