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:
parent
1da78d1301
commit
7f1a741caa
1 changed files with 25 additions and 24 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue