Thread: Python and Snack - works in interpreter, not in script. Bizzarre.
install python-snack repositories (available in lucid), , give quick tutorial whirl: http://www.speech.kth.se/snack/man/s...ython-man.html
if example script entered python interpreter, when enter mysound.play() statement, python plays requested file.
however, if enter code python script, name .py extension, add executable bit on file , run #!/usr/bin/env python shbang @ top, runs , exits cleanly.
if alter code make break (non-existent filename, mis-spelled function call), break - means there's nothing wrong python's ability execute script.
bizarre, though. thoughts?
how providing test code?
Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk [SOLVED] Python and Snack - works in interpreter, not in script. Bizzarre.
Ubuntu
Comments
Post a Comment