change debug filepath and make it configurable

This commit is contained in:
chrys
2018-03-22 23:43:38 +01:00
parent 892cefe7e0
commit 73300a920a
8 changed files with 19 additions and 8 deletions

View File

@@ -260,8 +260,6 @@ class settingsManager():
settingsRoot = '/etc/fenrirscreenreader/'
settingsFile = cliArgs.setting
soundRoot = '/usr/share/sounds/fenrirscreenreader/'
environment['runtime']['debug'] = debugManager.debugManager()
environment['runtime']['debug'].initialize(environment)
# get fenrir settings root
if not os.path.exists(settingsRoot):
if os.path.exists(fenrirPath +'/../../config/'):
@@ -285,6 +283,9 @@ class settingsManager():
validConfig = environment['runtime']['settingsManager'].loadSettings(settingsFile)
if not validConfig:
return None
environment['runtime']['debug'] = debugManager.debugManager(self.env['runtime']['settingsManager'].getSetting('general','debugFile'))
environment['runtime']['debug'].initialize(environment)
if cliArgs.options != '':
self.parseSettingArgs(cliArgs.options)