Update settingsManager.py

This commit is contained in:
chrys87 2017-07-25 14:58:24 +02:00 committed by GitHub
parent 44a2bee401
commit ac476be152

View File

@ -259,7 +259,7 @@ class settingsManager():
environment['runtime']['debug'].initialize(environment) environment['runtime']['debug'].initialize(environment)
# get fenrir settings root # get fenrir settings root
if not os.path.exists(settingsRoot): if not os.path.exists(settingsRoot):
if os.path.exists(fenrirPath) +'/../../config/'): if os.path.exists(fenrirPath +'/../../config/'):
settingsRoot = fenrirPath +'/../../config/' settingsRoot = fenrirPath +'/../../config/'
else: else:
return None return None
@ -271,7 +271,7 @@ class settingsManager():
return None return None
# get sound themes root # get sound themes root
if not os.path.exists(soundRoot): if not os.path.exists(soundRoot):
if os.path.exists(fenrirPath) +' /../../config/sound/'): if os.path.exists(fenrirPath +' /../../config/sound/'):
soundRoot = fenrirPath + '/../../config/sound/' soundRoot = fenrirPath + '/../../config/sound/'
environment['runtime']['settingsManager'] = self environment['runtime']['settingsManager'] = self