core: local_dir moved to config file

- ~/.sat.conf added to potential config file location
- removed useless profile param from getConfig
This commit is contained in:
Goffi 2011-06-18 17:56:59 +02:00
commit 7f1a741caa

View file

@ -22,7 +22,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
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 @@ class SAT(service.Service):
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)