diff src/core/sat_main.py @ 365:efbfccfed623

core: local_dir moved to config file - ~/.sat.conf added to potential config file location - removed useless profile param from getConfig
author Goffi <goffi@goffi.org>
date Sat, 18 Jun 2011 17:56:59 +0200
parents 312ca6f9d84a
children a617af506154
line wrap: on
line diff
--- a/src/core/sat_main.py	Sat Jun 18 16:22:50 2011 +0200
+++ b/src/core/sat_main.py	Sat Jun 18 17:56:59 2011 +0200
@@ -22,7 +22,6 @@
 CONST = {
     'client_name' : u'SàT (Salut à toi)',
     'client_version' : u'0.2.0D',   #Please add 'D' at the end for dev versions
-    'local_dir' : '~/.sat'
 }
 
 from twisted.application import service
@@ -107,7 +106,7 @@
         
         self.memory=Memory(self)
         
-        local_dir = os.path.expanduser(self.get_const('local_dir'))
+        local_dir = self.memory.getConfig('', 'local_dir')
         if not os.path.exists(local_dir):
             os.makedirs(local_dir)