dont push
This commit is contained in:
@ -41,8 +41,9 @@ class outputManager():
|
||||
if environment['runtime']['soundDriver'] == None:
|
||||
return
|
||||
print(soundIconName)
|
||||
environment['runtime']['soundDriver'].playSoundFile( environment['soundIcons'][soundIconName], interrupt)
|
||||
try:
|
||||
print(environment['soundIcons'][soundIconName])
|
||||
environment['runtime']['soundDriver'].playSoundFile(environment, environment['soundIcons'][soundIconName], interrupt)
|
||||
environment['runtime']['soundDriver'].playSoundFile(environment['soundIcons'][soundIconName], interrupt)
|
||||
except:
|
||||
print('no icon there for' + IconName)
|
||||
print('no icon there for' + soundIconName)
|
||||
|
@ -86,16 +86,20 @@ class settingsManager():
|
||||
Values[1] = Values[1].replace("'","")
|
||||
Values[1] = Values[1].replace('"',"")
|
||||
validSoundIcon = False
|
||||
FilePath = ''
|
||||
if os.path.exists(Values[1]):
|
||||
FilePath = Values[1]
|
||||
validKeyString = True
|
||||
validSoundIcon = True
|
||||
else:
|
||||
if not soundIconPath.endswith("/"):
|
||||
soundIconPath += '/'
|
||||
if os.path.exists(soundIconPath + Values[1]):
|
||||
FilePath = soundIconPath + Values[1]
|
||||
validSoundIcon = True
|
||||
if validSoundIcon:
|
||||
environment['soundIcons'][soundIcon] = FilePath
|
||||
siConfig.close()
|
||||
print(environment['soundIcons'])
|
||||
return environment
|
||||
|
||||
def loadSettings(self, environment, settingConfigPath='../../config/settings/settings.conf'):
|
||||
|
Reference in New Issue
Block a user