August 21st, 2006, 08:00 PM
You shouldn't have the - in front of each one..
As for the initial error.. Is this Python from Python.org or ActiveState Python (they have differences)...
August 21st, 2006, 05:09 PM
IndexError: list index out of range
This is your key.... It's actually a very, very simply solution...
Try just sys.argv
In python [x] denotes the x+1 item in a list (because we start...
August 21st, 2006, 04:10 PM
Hey Hey
If you've got Python, you've got everything you need to run the script and there are no changes that have to be made... it works perfectly the way it is.
I'd suggest you go look up why...
August 21st, 2006, 08:18 AM
Wouldn't it be more fun to try this yourself or learn how to do it yourself??? What's the point in it if you don't learn anything?
Regardless.. this can be done quite easily in python:
...