Update settingsManager.py

This commit is contained in:
chrys87 2016-09-15 10:19:58 +02:00 committed by GitHub
parent ba0d381130
commit ac02273dd3

View File

@ -71,16 +71,15 @@ class settingsManager():
soundIcon = Values[0] soundIcon = Values[0]
Values[1] = Values[1].replace("'","") Values[1] = Values[1].replace("'","")
Values[1] = Values[1].replace('"',"") Values[1] = Values[1].replace('"',"")
validSoundIcon = False soundIconFile = ''
FilePath = ''
if os.path.exists(Values[1]): if os.path.exists(Values[1]):
FilePath = Values[1] soundIconFile = Values[1]
else: else:
if not soundIconPath.endswith("/"): if not soundIconPath.endswith("/"):
soundIconPath += '/' soundIconPath += '/'
if os.path.exists(soundIconPath + Values[1]): if os.path.exists(soundIconPath + Values[1]):
FilePath = soundIconPath + Values[1] soundIconFile = soundIconPath + Values[1]
environment['soundIcons'][soundIcon] = FilePath environment['soundIcons'][soundIcon] = soundIconFile
siConfig.close() siConfig.close()
return environment return environment