Mercurial > libervia-backend
comparison src/memory/memory.py @ 1046:a874a79ad0f5
tools: add missing file src/tools/config.py
author | souliane <souliane@mailoo.org> |
---|---|
date | Fri, 23 May 2014 10:03:33 +0200 |
parents | 65fffdcb97f1 |
children | 7ee9d9db67b9 |
comparison
equal
deleted
inserted
replaced
1045:65fffdcb97f1 | 1046:a874a79ad0f5 |
---|---|
178 return # nothing to do | 178 return # nothing to do |
179 old_default = '~/.sat' | 179 old_default = '~/.sat' |
180 if os.path.isfile(os.path.expanduser(old_default) + '/' + C.SAVEFILE_DATABASE): | 180 if os.path.isfile(os.path.expanduser(old_default) + '/' + C.SAVEFILE_DATABASE): |
181 if not silent: | 181 if not silent: |
182 log.warning(_("A database has been found in the default local_dir for previous versions (< 0.5)")) | 182 log.warning(_("A database has been found in the default local_dir for previous versions (< 0.5)")) |
183 fixConfigOption('', 'local_dir', old_default) | 183 fixConfigOption('', 'local_dir', old_default, silent) |
184 | 184 |
185 | 185 |
186 class Memory(object): | 186 class Memory(object): |
187 """This class manage all persistent informations""" | 187 """This class manage all persistent informations""" |
188 | 188 |