comparison src/core/sat_main.py @ 930:cbf4122baae7

core, memory: use XDG recommended paths as the defaults for the config and local directories
author souliane <souliane@mailoo.org>
date Sun, 23 Mar 2014 22:43:43 +0100
parents 5c78cefd233f
children c6d8fc63b1db
comparison
equal deleted inserted replaced
929:059b56cbd247 930:cbf4122baae7
95 self.__private_data = {} # used for internal callbacks (key = id) FIXME: to be removed 95 self.__private_data = {} # used for internal callbacks (key = id) FIXME: to be removed
96 self.profiles = {} 96 self.profiles = {}
97 self.plugins = {} 97 self.plugins = {}
98 98
99 self.memory = Memory(self) 99 self.memory = Memory(self)
100
101 local_dir = self.memory.getConfig('', 'local_dir')
102 if not os.path.exists(local_dir):
103 os.makedirs(local_dir)
104
105 self.trigger = TriggerManager() # trigger are used to change SàT behaviour 100 self.trigger = TriggerManager() # trigger are used to change SàT behaviour
106 101
107 try: 102 try:
108 self.bridge = DBusBridge() 103 self.bridge = DBusBridge()
109 except exceptions.BridgeInitError: 104 except exceptions.BridgeInitError: