You must run it from a command prompt/command line to pass it arguments. I.e. Start up a cmd window and type in media_player.py filename and it should work. You must be in the same directory as your script. It's hard to help without knowing what you're stuck on, so what part doesn't make sense?
On 8/10/09, Hagbard <[email protected]> wrote: > > Hello, I am new to Python and to pyglet. I am trying to get the media > player example to work, but I am having trouble. > > First, I tried running it through IDLE, and it returned "sys.exit(1)", > presumably because the length of sys.argv is less than 2, which, as > far as I can tell, means that I need to execute it with a filename as > an argument. > > I'm having trouble figuring out how to do that. Can anyone help me > out? > > It gave me the hint "'Usage: media_player.py <filename> > [<filename> ...]" > > But unfortunately, at this point that doesn't help me very much. > > > > -- Sent from my mobile device --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pyglet-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en -~----------~----~----~----~------~----~------~--~---
