[Alsaplayer-devel]python interface plugin
Evgeny Chukreev
codedj@echo.ru
Sat, 13 Apr 2002 06:54:05 +0700
On Sat, 13 Apr 2002 01:40:49 +0200, Andy Lo A Foe <andy@alsaplayer.org> wrote:
ALAF> > PS I don't understand why this one line executable file does not work:
ALAF> > #!/usr/local/bin/alsaplayer -i text
ALAF> That is the syntax of a script file, what you really want is this:
ALAF> #!/bin/sh
ALAF> /usr/local/bin/alsaplayer -i text "$@"
It was not good example... sorry.
Really I want to run python's interfaces by code like this:
--- ---
#!/usr/local/bin/alsaplayer -i python
import alsaplayer, time
playlist = alsaplayer.get_playlist ()
playlist.insert (["/tmp/0.mp3", "/tmp/1.mp3"], 0)
playlist.play (0)
time.sleep (10)
--- ---
Strange but this headers works fine.
#!/usr/local/bin/alsaplayer --help
#!/usr/local/bin/alsaplayer -v
--
... Evgeny ... [Nothing]