projects
/
saartuer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tidied up fire_and_forget_cmd for sound playing
[saartuer.git]
/
statemachine.py
diff --git
a/statemachine.py
b/statemachine.py
index b647ac95bcfa7e183b8a68f60f29273bf1a2deb3..3e222069e264f7f9d457149ec14adc6bf936c0de 100644
(file)
--- a/
statemachine.py
+++ b/
statemachine.py
@@
-11,7
+11,7
@@
def play_sound (what):
logger.error("StateMachine: Unable to list sound files in %s" % (SOUNDS_DIRECTORY+what))
return
soundfile = SOUNDS_DIRECTORY + what + '/' + random.choice(soundfiles)
logger.error("StateMachine: Unable to list sound files in %s" % (SOUNDS_DIRECTORY+what))
return
soundfile = SOUNDS_DIRECTORY + what + '/' + random.choice(soundfiles)
- fire_and_forget_cmd ([SOUNDS_PLAYER,soundfile],
logger.error,
"StateMachine: ")
+ fire_and_forget_cmd ([SOUNDS_PLAYER,soundfile], "StateMachine: ")
# convert an absolute nervlist to a relative one
def nervlist_abs2rel(nervlist_abs):
# convert an absolute nervlist to a relative one
def nervlist_abs2rel(nervlist_abs):