proc EchoPlaySound {soundspec} {
# Temporary workaround to tell Python Sugar app to play sound.
- global Sound
+ global Sound ResourceDir
if {$Sound} {
#echo PlaySound [lindex $soundspec 0]
signal ignore SIGCHLD
- exec res/sounds/player res/sounds/[string tolower [lindex $soundspec 0]].wav &
+ exec "${ResourceDir}/sounds/player" "${ResourceDir}/sounds/[string tolower [lindex $soundspec 0]].wav" &
}
}